-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
[Bug]: Media keys are intercepted . #747
Comments
Completed by fc18466 . |
Oh wow ... works great . Thank you |
Hi just tested it a bit and it looks like next track media key ain't working properly . It just stops the music. |
You mean it does not work properly in Android or in X11 apps? |
Good. |
LOL. Damn you were fast. Sorry . I deleted the previous comment because it was wrong . So i just realised that the keys are no longer being passed to android. I'm positive they were working fine last time. I mean the media keys don't change the song in the android music player. The volume key still modify the android volume. |
Can you please start termux-x11 with I'll try to patch it. |
sorry i don't know how i should do that |
|
I'll try tonight when I'll have a bit of time. Thank you |
so i get the output when i press the keys ... loriesomething sending keys ... but if i try to reddirect the output to a file it seems like it doesn't redirect the whole output and the key presses are missing . |
You should redirect both stdout and both stderr. Like |
Any updates? |
Sorry had some problems and was busy. I think i got it now. |
The log is 10k lines long. Seems like you used KEYCODE_MUSIC, KEYCODE_MEDIA_PLAY_PAUSE, KEYCODE_MEDIA_STOP, KEYCODE_MEDIA_NEXT, KEYCODE_MEDIA_PREVIOUS. But I can not tell which one key is faulting because you used like ~30 keys in this session. |
hi . Hope this log is better ... |
If you are right about the codes they should correspond to KEYCODE_MEDIA_PLAY_PAUSE, KEYCODE_MEDIA_NEXT and KEYCODE_MEDIA_PREVIOUS according to https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/KeyEvent.java#293 . |
Well ... Then it could be something on my side. |
Problem description
I have a Bluetooth keyboard with media keys , volume . etc. The volume keys work fine , but the media keys don't.
They do work if termux-x11 ain't focused.
What steps will reproduce the bug?
Using a bluetooth keyboard with media keys
What is the expected behavior?
I would have expected the keys to pass through to android , like the volume ones do .
The text was updated successfully, but these errors were encountered: