-
-
Notifications
You must be signed in to change notification settings - Fork 554
fix: Fix keyboard hotkeys not working #7975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Bnyro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, keyboard events already work fine, so I don't see why these changes are needed?
| binding.player.apply { | ||
| isFocusable = true | ||
| isFocusableInTouchMode = true | ||
| requestFocus() | ||
| setOnKeyListener { _, keyCode, _ -> | ||
| onKeyUp(keyCode) | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case, this should be moved to CustomExoPlayerView.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into it 👍
On my and my wifes tablet (Lenovo Pro Tab 11 and Lenovo Pro Tab 12 respectivaly) is a hit or miss. Sometimes it pauses the video on the first try, then the focus automatically changes to a random element on screen without me tapping anywhere. So if I press spacebar again to resume the video most of the time it exits fullscreen and or plays the next video. |
Thanks for the explanation! (I'm not really using LibreTube with a keyboard, so I can't tell how it performs in the real world except from a short test) In that case it definitely makes sense to include these changes. It'd be great if you could move the changes you made to the |
This commit fixes tablets with attached keyboard not registering input