From fd6297b4fb35fc365b4b4bc19ac3a816e8a16e08 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 26 Jul 2024 20:55:34 -0400 Subject: [PATCH] And arrow keys! Because, why not! --- internal/system/event.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/system/event.go b/internal/system/event.go index aa820b2..9699c53 100644 --- a/internal/system/event.go +++ b/internal/system/event.go @@ -33,13 +33,16 @@ func (this *Hierarchy) HandleKeyDown (key input.Key, numberPad bool) { return true }) if caught { return } - - if key == input.KeyTab { + + switch key { + case input.KeyTab: if this.modifiers.Shift { this.focusPrevious() } else { this.focusNext() } + case input.KeyUp: this.focusPrevious() + case input.KeyDown: this.focusNext() } }