Refactored the UI module and the handlers module to do a more chain-of-responsibility method to manage the UI's and handlers for different key events. Also, initial work for indexer settings as well
This commit is contained in:
@@ -22,6 +22,7 @@ generate_keybindings! {
|
||||
edit,
|
||||
logs,
|
||||
tasks,
|
||||
restrictions,
|
||||
refresh,
|
||||
update,
|
||||
events,
|
||||
@@ -95,6 +96,10 @@ pub const DEFAULT_KEYBINDINGS: KeyBindings = KeyBindings {
|
||||
key: Key::Char('t'),
|
||||
desc: "Tasks",
|
||||
},
|
||||
restrictions: KeyBinding {
|
||||
key: Key::Char('t'),
|
||||
desc: "Restrictions",
|
||||
},
|
||||
refresh: KeyBinding {
|
||||
key: Key::Char('r'),
|
||||
desc: "Refresh",
|
||||
|
||||
Reference in New Issue
Block a user