mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-11-01 12:35:56 +00:00
Fix #14
This commit is contained in:
parent
c5af270885
commit
72ed03adcb
11
src/xterm.js
11
src/xterm.js
@ -2200,16 +2200,21 @@
|
||||
break;
|
||||
// left-arrow
|
||||
case 37:
|
||||
if (this.applicationCursor) {
|
||||
if (ev.altKey) {
|
||||
key = '\x1bb' // Jump a word back
|
||||
break;
|
||||
} else if (this.applicationCursor) {
|
||||
key = '\x1bOD'; // SS3 as ^[O for 7-bit
|
||||
//key = '\x8fD'; // SS3 as 0x8f for 8-bit
|
||||
break;
|
||||
}
|
||||
key = '\x1b[D';
|
||||
break;
|
||||
// right-arrow
|
||||
case 39:
|
||||
if (this.applicationCursor) {
|
||||
if (ev.altKey) {
|
||||
key = '\x1bf' // Jump a word forward
|
||||
break;
|
||||
} else if (this.applicationCursor) {
|
||||
key = '\x1bOC';
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user