Bug 333097 - Allow Ctrl-Enter in single-line input to sent commands as literal text.

ChatZilla only.
r=samuel
This commit is contained in:
silver%warwickcompsoc.co.uk 2006-07-18 17:03:49 +00:00
parent 5e792b18bf
commit 8f605f57a7

View File

@ -340,6 +340,8 @@ function onInputKeyPress (e)
case 13: /* CR */
e.line = e.target.value;
e.target.value = "";
if (e.ctrlKey)
e.line = client.COMMAND_CHAR + "say " + e.line;
if (e.line.search(/\S/) == -1)
return;
onInputCompleteLine (e);