From 97e08e71bd19ee61330b2ee15fc22c0ccf1edfa4 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Sat, 16 Sep 2017 23:56:22 +0200 Subject: [PATCH] =?UTF-8?q?Add=20back=20=E2=8C=83=E2=87=A7C=20shortcut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/term_input.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/term_input.js b/js/term_input.js index ad91ebd..71bf711 100644 --- a/js/term_input.js +++ b/js/term_input.js @@ -208,7 +208,12 @@ window.Input = function (conn, screen) { 'Meta+ArrowLeft': '\x01', // ⌘← to go to the beginning of a line (^A) 'Meta+ArrowRight': '\x05', // ⌘→ to go to the end of a line (^E) 'Alt+Backspace': '\x17', // ⌥⌫ to delete a word (^W) - 'Meta+Backspace': '\x15' // ⌘⌫ to delete to the beginning of a line (^U) + 'Meta+Backspace': '\x15', // ⌘⌫ to delete to the beginning of a line (^U) + + // copy to clipboard + 'Control+Shift+C' () { + screen.copySelectionToClipboard() + } /* eslint-enable key-spacing */ }