Pressing Alt + ←/→ does not interfere now with browser

Previously, when on Chrome for Windows, if default was not prevented the browser history backward/forward was triggered.

Fixes #19
This commit is contained in:
Antonis Kalipetis
2015-01-28 11:04:38 +02:00
parent 2a9de5e5c0
commit 9ef6b52352
+2
View File
@@ -2201,6 +2201,7 @@
// left-arrow
case 37:
if (ev.altKey) {
ev.preventDefault();
key = '\x1bb' // Jump a word back
break;
} else if (this.applicationCursor) {
@@ -2212,6 +2213,7 @@
// right-arrow
case 39:
if (ev.altKey) {
ev.preventDefault();
key = '\x1bf' // Jump a word forward
break;
} else if (this.applicationCursor) {