Closed ymtdzzz closed 1 month ago
There seems to be two way to implement this feature:
Define the key mapping on the root component.
Pass the command
's SetText()
from the root component to the constructor of child components and SetFocusFunc()
is performed in it.
I think (2) is better because (1) overrides SetFocusFunc()
implicitly and that causes unexpected behaviors.
WIP implementation of (2): https://github.com/ymtdzzz/otel-tui/commit/1e1b90348da0922231c97972cd4246a73c7efdab
focused on tables pane
focused on search form
focused on details pane
We need this feature because of the growing of the number of keymaps.