mirror of
https://github.com/koreader/koreader.git
synced 2026-11-28 08:17:00 +00:00
On devices with a physical keyboard (e.g. Kindle), the on-screen keyboard can already be toggled while a text field is focused via Shift/ScreenKB + Home. This adds a lone tap of the physical Sym key as an additional, more natural trigger. Sym is otherwise a held modifier for the symbol layer, and Input:handleKeyBoardEv swallows a bare modifier press/release before it becomes a key event. Detect a Sym press+release with no other key in between and surface it as a dedicated "SymPress" key event, which InputText handles the same way as the existing Shift/ScreenKB + Home toggle. The symbol layer (Sym+<key>) is unaffected: any intervening key press clears the lone-tap state, so only a true solo tap fires. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>