Wonkiness on layout

This commit is contained in:
2025-10-10 16:46:29 -05:00
parent 79a212e601
commit 7a1afd67ac
28 changed files with 362 additions and 156 deletions

View File

@@ -32,7 +32,11 @@ type Widget interface {
HandleResize(*tcell.EventResize)
HandleKey(*tcell.EventKey) bool
HandleTime(*tcell.EventTime)
SetKeyMap(km KeyMap)
// KeyMap Handling
// SetKeyMap sets a new keymap
// if 'def' is true, the default keymap is overwritten
// otherwise, it should be treated as a custom keymap
SetKeyMap(km KeyMap, def bool)
AddToKeyMap(km KeyMap)
RemoveFromKeyMap(km KeyMap)
Draw(tcell.Screen)