From 3b94a56ecad81980448cb1f7f78acd8e58ab0c67 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 15 Sep 2019 18:37:50 -0300 Subject: Keyboard functions for Home, Insert, Delete, End --- util/telchars.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/telchars.js') diff --git a/util/telchars.js b/util/telchars.js index 5425468..3ae07cb 100644 --- a/util/telchars.js +++ b/util/telchars.js @@ -81,6 +81,10 @@ const telchars = { isControlRight: buf => compareBufStr(buf, '\x1b[1;5C'), isControlLeft: buf => compareBufStr(buf, '\x1b[1;5D'), + isHome: buf => compareBufStr(buf, '\x1b[1~'), + isInsert: buf => compareBufStr(buf, '\x1b[2~'), + isDelete: buf => compareBufStr(buf, '\x1b[3~'), + isEnd: buf => compareBufStr(buf, '\x1b[4~'), isPageUp: buf => compareBufStr(buf, '\x1b[5~'), isPageDown: buf => compareBufStr(buf, '\x1b[6~'), -- cgit 1.3.0-6-gf8a5