diff options
author | marzavec <admin@marzavec.com> | 2019-04-26 15:19:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 15:19:20 +0200 |
commit | aedd4d46d0cb5105f78f09dac745f655849ed5ca (patch) | |
tree | 8060da241b04e58100b30a8c9f9ec981e861eaa2 | |
parent | Merge pull request #59 from MinusGix/patch-4 (diff) | |
parent | Update client.js (diff) | |
download | hackchat-aedd4d46d0cb5105f78f09dac745f655849ed5ca.tar.gz hackchat-aedd4d46d0cb5105f78f09dac745f655849ed5ca.zip |
Merge pull request #60 from MinusGix/patch-5
Make Ctrl-Tab while typing in textarea exit early
Diffstat (limited to '')
-rw-r--r-- | client/client.js | 6 |
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; |