navigation
dev_tool.tui.components.navigation
NavigationHandler
A handler class for navigation logic.
The constructor for the NavigationHandler class.
Parameters:
-
state(StateManager) –The state manager instance.
-
notification(NotificationDisplay) –The notification display instance.
Source code in dev_tool/tui/components/navigation.py
notification = notification
instance-attribute
state = state
instance-attribute
get_selected_item
A method that gets the currently selected menu item.
Returns:
-
MenuItem–The selected menu item.
Source code in dev_tool/tui/components/navigation.py
handle_navigation
A method that handles navigation key presses.
Parameters:
-
key(str) –The key name.
Returns:
-
bool–True if the UI needs redraw, False otherwise.