Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-18-2022, 11:55 AM   #1
bart_simpson
Junior Member
bart_simpson began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2022
Device: kindle DXG
Koreader map dictionary search to button

I know this device is ancient, but I still use it and even replaced the battery this year.

As expected, koreader's performance is far from fast on the DX. Navigating the menus is painfully slow. Can I make a keyboard button into a hotkey to pop up the "search dictionary" dialog?

I see in koreader/fronteend/kindle/event_map_keyboard.lua various lines of the form:

[number representing button] = "eventname"

where "eventname" is things like "Menu", "Home", "Left", etc.

Is there an eventname to pop up the dictionary search dialog? If no, how about just the dictionary menu?
bart_simpson is offline   Reply With Quote
Old 12-18-2022, 01:40 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
It's actually a code = key keymap, this doesn't actually directly map to KOReader Events.

So, that's a no, not this way at least.

There's no built-in way to do that for keys like you can for gestures via the Gesture Manager.
But, if such an action already exists in Gesture Manager, you might be able to do so relatively trivially with a user patch.
If it doesn't exist in gesture Manager, you might be able to do so slightly less trivially via an user patch .

I'm not in a position to check the code for any of these assumptions right now.
NiLuJe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Koreader exits when using the scroll middle mouse button productivity01 KOReader 6 07-09-2022 07:20 AM
Koreader power button sensitivity awelxtr KOReader 0 11-22-2021 12:30 PM
Searching in koreader file browser: no back button? libertango KOReader 6 02-23-2018 09:43 AM
[KT]Turn store button on search bar to browser button aditya3098 Kindle Developer's Corner 74 05-19-2017 08:33 PM
re-map an easier "next page" button ? DojoPat Sony Reader 4 09-24-2007 01:08 PM


All times are GMT -4. The time now is 10:29 PM.


MobileRead.com is a privately owned, operated and funded community.