![]() |
#16 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,918
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Onyx does a lot of mapping and short/long press of keys.
(I really hate that, so I disable it.) You might try using my UsbMode.apk (in my sig) which can show you what keys are pressed. The little up/down triangles show when the up/down commands are received. For many keys (on stock Onyx), when you push the key nothing happens. When you release the key the Onyx code recognizes it as short and issues a quick down/up. |
![]() |
![]() |
![]() |
#17 |
Member
![]() Posts: 11
Karma: 10
Join Date: Mar 2017
Device: Kobo Mini
|
Thank! Tried your tool. It’s great.
So it turns out I can send F4 intent, no issue. Also if I use F4 on keyboard that’s no issue and refresh works. Also with a Bluetooth controller I can program to send F4 it works. The issue is that the intent isn’t the same as a real F4. It’s like Onyx captures the F4 and overrides it. Ultimately, without a real F4 I can’t send something that refreshes programmatically (yea, there are kludgy things I can do). Do you happen to know any way to call refresh from macrodroid? Some other intent maybe? Note Air 3c if it matters? Thanks for the direction you already provided. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,918
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
Code:
$ am broadcast -a onyx.android.intent.action.REFRESH_SCREEN |
![]() |
![]() |
![]() |
#19 |
Member
![]() Posts: 11
Karma: 10
Join Date: Mar 2017
Device: Kobo Mini
|
Amazing. Thanks so much.
|
![]() |
![]() |
![]() |
#20 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
list of shortcuts
So it's obvious from your annotations that you're familiar with what various keyboard button presses do in a boox device/neoreader.
I'm using an 8bitdo micro as a bluetooth keyboard which means I can just program what each button on it sends instead of programming intentions (simpler if a bit less flexible). Is there a list of physical keyboard shortcuts that work besides those you have used here? I've been searching the internet and the forums for a while and didn't find any. (so far I've used the function buttons you've listed, and the arrow keys work for paging and font size, alt+tab works for cycling between apps). Last edited by pdurrant; 01-20-2025 at 02:25 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,918
Karma: 17236157
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
For Bluetooth devices it is in framework-res.apk > res/raw/bt_keypad.json
Code:
{ "keypad": [ { "keyCodeString": "KEYCODE_F1", "shortPressAction": "KEYCODE_MENU" }, { "keyCodeString": "KEYCODE_F2", "shortPressAction": "KEYCODE_BACK" }, { "keyCodeString": "KEYCODE_F3", "shortPressAction": "SHOW_DISPLAY_CONTROL_AND_INCREASE_CONTRAST" }, { "keyCodeString": "KEYCODE_F4", "shortPressAction": "REFRESH_SCREEN" }, { "keyCodeString": "KEYCODE_F5", "shortPressAction": "SCREENSHOTS" }, { "keyCodeString": "KEYCODE_F6", "shortPressAction": "TOGGLE_CTM_BRIGHTNESS" }, { "keyCodeString": "KEYCODE_F8", "shortPressAction": "HOME" }, { "keyCodeString": "KEYCODE_F9", "shortPressAction": "SHOW_DISPLAY_CONTROL_DIALOG" }, { "keyCodeString": "KEYCODE_F10", "shortPressAction": "SHOW_REFRESH_MODE_DIALOG" }, { "keyCodeString": "KEYCODE_F12", "shortPressAction": "OPEN_FRONT_LIGHT_DIALOG" } ] } |
![]() |
![]() |
![]() |
#22 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 3184
Join Date: Feb 2011
Device: ONYX BOOX Note Air3 C
|
Thanks, that's good to know.
I've found keypad.json and keypad_onyx.json suggestive of a few other working short cuts (though some are sure to not work without the onyx keyboard seeing as there are conflicting assignments). Shortcuts using the Fn key I'm not sure can be worked. Shortcuts using the Cmd key should work with the windows (and maybe the menu) key if I recall the popup on my device correctly. Still the most useful are those you've listed and the arrow keys work for font size and page turning and alt+tab for app switching. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
App Icons for Boox Devices | triumph627 | Onyx Boox | 13 | 04-23-2021 07:58 AM |
Boox releasing 5 new devices | Crowriver | Onyx Boox | 105 | 10-07-2020 08:47 AM |
[GUIDE] OTG devices with Onyx boox | utkarshj | Onyx Boox | 36 | 05-19-2020 12:27 PM |
Separate collection for devices | bump | Library Management | 0 | 01-14-2017 03:23 PM |
Calibre work with two different devices? | BrentB | Devices | 4 | 11-18-2011 09:22 AM |