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

SVN revision: 1957
This commit is contained in:
2007-11-05 08:17:52 +00:00
parent 5611a2e170
commit 6534db6d49
+8
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]';
else if (tag == 'LINE')
str = selection + '[LINE]';
else if (tag == '*')
str = '\r\n[*] ';
else if (value == '')
str = '['+tag+']' + selection + '[/'+tag+']';
else
@@ -81,6 +83,8 @@ function elcode1(text, tag, value, selection)
pos = 11;
else if (tag == 'TABLE')
pos = 19;
else if (tag == '*')
pos = 5;
else if (value == '')
pos = tag.length + 2;
else
@@ -190,6 +194,10 @@ function elKeyPress(evt)
elcode(document.form1.Text, 'LIST','');
return false;
}
if (actualkey == "n") {
elcode(document.form1.Text, '*','');
return false;
}
if (actualkey == "h") {
queryHeading(document.form1.Text);
return false;