1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Update client.js

This commit is contained in:
MinusGix 2019-04-25 16:07:15 -05:00 committed by GitHub
parent 75e7e56309
commit 5831613a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,6 +396,12 @@ $('#chatinput').onkeydown = function (e) {
updateInputSize(); updateInputSize();
} else if (e.keyCode == 9 /* TAB */) { } else if (e.keyCode == 9 /* TAB */) {
// Tab complete nicknames starting with @ // 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(); e.preventDefault();
var pos = e.target.selectionStart || 0; var pos = e.target.selectionStart || 0;