Replies: 1 comment
-
You can handle the Key event and update your state accordingly. Something along these lines: async def on_key(self, event: events.Key) -> None:
self.log(event)
if event.key == "up":
self.cursor -=1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I'm playing with textual to make a nice opsgenie terminal dashboard.
I'm using Table to render the alerts list
It's a little dirty, but just a PoC and code playground with Textual :)
Really basic class, i try to follow example with
Hello World
widget and mouse control.But no success with keyboard.
What is the way to navigate through elements with keyboard?
Thanks a lot for your work :D
Beta Was this translation helpful? Give feedback.
All reactions