From 5831613a7755056b6c78897a753733b2d1bb569f Mon Sep 17 00:00:00 2001 From: MinusGix Date: Thu, 25 Apr 2019 16:07:15 -0500 Subject: Update client.js --- client/client.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.1