From ef75ed49bea100a059abf8ab38b4d364cd726854 Mon Sep 17 00:00:00 2001 From: Ben Lu Date: Sat, 4 Sep 2021 16:34:21 +0100 Subject: [PATCH] Add ctrl shortcuts --- lib/util/action.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/util/action.js b/lib/util/action.js index fefbd947..fe23142d 100644 --- a/lib/util/action.js +++ b/lib/util/action.js @@ -9,6 +9,8 @@ module.exports = (key, isSelect) => { if (key.name === 'd') return 'abort'; if (key.name === 'e') return 'last'; if (key.name === 'g') return 'reset'; + if (key.name === 'n') return 'down'; + if (key.name === 'p') return 'up'; } if (isSelect) { @@ -35,5 +37,7 @@ module.exports = (key, isSelect) => { if (key.name === 'right') return 'right'; if (key.name === 'left') return 'left'; + if (key.ctrl) return; + return false; };