From 774f072b3707bff20f272674fc3f26f1facd3ce1 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Tue, 18 Jul 2006 17:03:49 +0000 Subject: [PATCH] Bug 333097 - Allow Ctrl-Enter in single-line input to sent commands as literal text. ChatZilla only. r=samuel --- extensions/irc/xul/content/handlers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/irc/xul/content/handlers.js b/extensions/irc/xul/content/handlers.js index 4891dfdb278..914d3d699a9 100644 --- a/extensions/irc/xul/content/handlers.js +++ b/extensions/irc/xul/content/handlers.js @@ -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);