Prevent Ctrl-Tab from triggering tab completion

Fixes #529

This is probably the simplest workaround for Firefox sending a keydown event when switching browser tabs via Ctrl-Tab
This commit is contained in:
Henning Hoefer 2016-08-04 04:31:19 +02:00 committed by GitHub
parent 376fdee8b1
commit 08d3633ae2

View File

@ -112,7 +112,7 @@
this.on("keydown.tabcomplete", function(e) {
var key = e.which;
if (key == keys.tab
if (key == keys.tab && !e.ctrlKey
|| (options.arrowKeys && (key == keys.up || key == keys.down))) {
// Don't lose focus on tab click.