mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user