summary refs log tree commit diff
path: root/v2/screen.ts
diff options
context:
space:
mode:
authorwlodekm <[email protected]>2024-11-15 09:21:59 +0200
committerwlodekm <[email protected]>2024-11-15 09:21:59 +0200
commitd51dbb974d83125f4bfb017188de6a013b7f746c (patch)
tree637032cbb0ca65514e872357b40906e16224cbda /v2/screen.ts
parent94e55a524c2faf0bd2c3b2e5c765c156e911472b (diff)
v2.1
Diffstat (limited to 'v2/screen.ts')
-rw-r--r--v2/screen.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/v2/screen.ts b/v2/screen.ts
index 99cc5a2..5e09d57 100644
--- a/v2/screen.ts
+++ b/v2/screen.ts
@@ -34,12 +34,12 @@ export class Screen {
             process.exit();
         }
         
-        if (['up', 'left'].includes(key.name)) {
+        if (['up', 'left'].includes(key.name) || key.name == "tab" && key.shift) {
             // logs.push(`Got up key, moving focus upward ${focusedIndex} ${(focusedIndex - 1) % focusableIDs.length}`)
             screen.focus(focusableIDs[(focusedIndex - 1) % focusableIDs.length]);
             return screen.render()
         }
-        if (['down', 'right'].includes(key.name)) {
+        if (['down', 'right'].includes(key.name) || key.name == "tab" && !key.shift) {
             // logs.push(`Got down key, moving focus downward ${focusedIndex} ${(focusedIndex + 1) % focusableIDs.length}`)
             screen.focus(focusableIDs[(focusedIndex + 1) % focusableIDs.length]);
             return screen.render()