aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMinusGix <MinusGix@gmail.com>2019-04-25 23:07:15 +0200
committerGitHub <noreply@github.com>2019-04-25 23:07:15 +0200
commit5831613a7755056b6c78897a753733b2d1bb569f (patch)
tree8060da241b04e58100b30a8c9f9ec981e861eaa2 /client
parentMerge pull request #59 from MinusGix/patch-4 (diff)
downloadhackchat-5831613a7755056b6c78897a753733b2d1bb569f.tar.gz
hackchat-5831613a7755056b6c78897a753733b2d1bb569f.zip
Update client.js
Diffstat (limited to 'client')
-rw-r--r--client/client.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/client.js b/client/client.js
index ab766b0..230b211 100644
--- a/client/client.js
+++ b/client/client.js
@@ -396,6 +396,12 @@ $('#chatinput').onkeydown = function (e) {
updateInputSize();
} else if (e.keyCode == 9 /* TAB */) {
// Tab complete nicknames starting with @
+
+ if (e.ctrlKey) {
+ // Skip autocompletion and tab insertion if user is pressing ctrl
+ // ctrl-tab is used by browsers to cycle through tabs
+ return;
+ }
e.preventDefault();
var pos = e.target.selectionStart || 0;