The gyro translation hooks run on events from every open input fd, so
now that ExternalKeyboard can attach keyboards on Kindle (#15248), a
hotplugged device that reports EV_ABS:ABS_PRESSURE (e.g. a keyboard
with a digitizer collection in its HID descriptor) can flip the screen
into the opposite landscape, bypassing both rotation locks (the
gsensor lock only checks the orientation axis, and both landscape
modes share it).
Remember the fds opened by the rotation device scan and have the hooks
ignore ABS_PRESSURE events from any other fd. ev.fd requires the
koreader-base counterpart; until the base bump this is a no-op.
Signed-off-by: Lucas Zampieri <lcasmz54@gmail.com>
Replace the re-flash approach (which caused banding) with a redraw
approach that closes and redraws the sleep screen widget between flashes.
Also make flash count and delay configurable via a spinner widget, and
calculate suspend_wait_timeout dynamically based on the configured values.
Fixes#15702
* pdfdocument: rename deleteMarkupAnnotation call to deleteAnnotation
Follows the koreader-base rename of the subtype-agnostic delete helper
(pdf_delete_annot) from deleteMarkupAnnotation to deleteAnnotation.
Companion to koreader/koreader-base#2444.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* bump base
- mupdf: expose ink annotation support in the FFI layer (koreader/koreader-base#2444)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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>
```
./luajit: frontend/document/document.lua:391: attempt to concatenate field 'background_cleanup' (a nil value)
stack traceback:
frontend/document/document.lua:391: in function 'getFullPageHash'
frontend/document/document.lua:413: in function 'renderPage'
frontend/document/document.lua:534: in function 'drawPage'
frontend/apps/reader/modules/readerview.lua:450: in function 'drawSinglePage'
frontend/apps/reader/modules/readerview.lua:198: in function 'paintTo'
frontend/ui/widget/container/inputcontainer.lua:91: in function 'paintTo'
frontend/ui/uimanager.lua:1262: in function '_repaint'
frontend/ui/uimanager.lua:1485: in function 'handleInput'
frontend/ui/uimanager.lua:1585: in function 'run'
reader.lua:251: in main chunk
[C]: at 0x559b746b885b
```
Cf. #15401.