Added CTRL-N for new list item, thanks to Bill Pier

SVN revision: 1957
This commit is contained in:
Stefan Ritt 2007-11-05 08:17:52 +00:00
parent 5611a2e170
commit 6534db6d49

View File

@ -70,6 +70,8 @@ function elcode1(text, tag, value, selection)
str = '[TABLE border="1"]\r\nA|B\r\n|-\r\nC|D\r\n[/TABLE]'; str = '[TABLE border="1"]\r\nA|B\r\n|-\r\nC|D\r\n[/TABLE]';
else if (tag == 'LINE') else if (tag == 'LINE')
str = selection + '[LINE]'; str = selection + '[LINE]';
else if (tag == '*')
str = '\r\n[*] ';
else if (value == '') else if (value == '')
str = '['+tag+']' + selection + '[/'+tag+']'; str = '['+tag+']' + selection + '[/'+tag+']';
else else
@ -81,6 +83,8 @@ function elcode1(text, tag, value, selection)
pos = 11; pos = 11;
else if (tag == 'TABLE') else if (tag == 'TABLE')
pos = 19; pos = 19;
else if (tag == '*')
pos = 5;
else if (value == '') else if (value == '')
pos = tag.length + 2; pos = tag.length + 2;
else else
@ -190,6 +194,10 @@ function elKeyPress(evt)
elcode(document.form1.Text, 'LIST',''); elcode(document.form1.Text, 'LIST','');
return false; return false;
} }
if (actualkey == "n") {
elcode(document.form1.Text, '*','');
return false;
}
if (actualkey == "h") { if (actualkey == "h") {
queryHeading(document.form1.Text); queryHeading(document.form1.Text);
return false; return false;