Workaround for ui.keyboard()
not being called for Space and Arrow keys when elements are focused
#4924
eulerleibniz
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I am starting this discussion because I had some trouble making a sort of a media players for timeseries and medical data. I needed some buttons for all typical actions you see in a media player (start, stop, forward, ...) and also wanted to have keyboard shortcuts for each of them.
Biggest problem was that Space and Arrow keys have inconsistent behavior when elements are focused. This is something that
ui.keyboard(ignore=["some element type"])
does not address. This is caused by the fact that browsers have defined these keys for actions such as page navigation and switching element focus and so on. So here is the fix in case someone needs it:Beta Was this translation helpful? Give feedback.
All reactions