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:
parent
75e7e56309
commit
5831613a77
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user