Reworking Keymaps

This commit is contained in:
2025-10-26 08:47:07 -05:00
parent cf47b5a4e4
commit d63e3a414a
30 changed files with 384 additions and 715 deletions

View File

@@ -33,12 +33,10 @@ type Widget interface {
HandleKey(*tcell.EventKey) bool
HandleTime(*tcell.EventTime)
// 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)
// SetKeyMap overwrites the keymap
GetKeyMap() *KeyMap
SetKeyMap(km *KeyMap)
Draw(tcell.Screen)
Active() bool
SetActive(bool)