]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Fix #14
authorparis <paris@sourcelair.com>
Sun, 4 Jan 2015 13:33:21 +0000 (15:33 +0200)
committerparis <paris@sourcelair.com>
Sun, 4 Jan 2015 13:33:21 +0000 (15:33 +0200)
src/xterm.js

index 79f3b3032b95099f09baff2d6c7a3deb86a58017..98663c153f82c9fefb032bef131a7f3b66d3e1f8 100644 (file)
           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;
           }