mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 333097 - Allow Ctrl-Enter in single-line input to sent commands as literal text.
ChatZilla only. r=samuel
This commit is contained in:
parent
5e792b18bf
commit
8f605f57a7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user