From afd46544a6b1747d9f00524ae307a70700522c4d Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Mon, 11 Sep 2017 21:51:14 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=8C=A5=E2=86=90=20and=20=E2=8C=A5?= =?UTF-8?q?=E2=86=92=20sending=20wrong=20codes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/term_input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/term_input.js b/js/term_input.js index 3595f74..a01df39 100644 --- a/js/term_input.js +++ b/js/term_input.js @@ -177,8 +177,8 @@ window.Input = function (conn) { bind('shift+end', '\x1f[1;2F') // macOS editing commands - bind('⌥+left', '\x1fb') // ⌥← to go back a word (^[b) - bind('⌥+right', '\x1ff') // ⌥→ to go forward one word (^[f) + bind('⌥+left', '\x1bb') // ⌥← to go back a word (^[b) + bind('⌥+right', '\x1bf') // ⌥→ to go forward one word (^[f) bind('⌘+left', '\x01') // ⌘← to go to the beginning of a line (^A) bind('⌘+right', '\x05') // ⌘→ to go to the end of a line (^E) bind('⌥+backspace', '\x17') // ⌥⌫ to delete a word (^W, I think)