Reworking Keymaps
This commit is contained in:
10
widget.go
10
widget.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user