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.
- correctly extract root-less dictionary archives (e.g. "reader.dict …"
dictionaries, close#15139), and avoid left-overs from a previous
extraction (to help in cases like #15448)
- fix extraction when a dictionary name contains characters that are
invalid for the target filesystem (e.g. the ":" in "Dictionnaire de
l'Académie Française: 8ème edition" on Kindle)
- improve download UI, including avoiding overlapping / out-of-order
dialogs ("Downloaded […]" dialog showing below the "Downloading" one)
On Kobo, isConnected is aliased to ifHasAnAddress, which returns true as
long as the interface holds any IP — including a stale lease from a
previous network. The early-return gate in turnOnWifiAndWaitForConnection
short-circuits before obtainIP() ever runs, so after switching networks
KOReader reports "Connected" while every request times out on the old
subnet's gateway.
Track the SSID a lease was obtained for (lease_ssid) and add
hasLeaseForCurrentNetwork(), which compares it against wpa_supplicant's
reported association. Guard the fast-path gates in
turnOnWifiAndWaitForConnection and doNothingAndWaitForConnection with it:
on a stale lease, release the old IP and fall through to the normal
reconnect path. lease_ssid is set in reconnectOrShowNetworkMenu (sync
connect) and connectivityCheck (async restore), and cleared when Wi-Fi
goes down or a connection is aborted.
When the backend cannot report an SSID (non-wpa_supplicant platforms),
hasLeaseForCurrentNetwork() returns true so connections are never churned
on uncertainty, preserving existing behaviour everywhere but Kobo.
Refs #14790, #14478, #14716
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GjgwQjZY2xoZPSuSXBJqv8
- `Device:ping4()`: do not use `struct icmphdr` (Linux specific),
idem with `struct iphdr`, which also need to be declared
differently depending on endianness (due to bitfields)
- `Device:retrieveNetworkInfo()`: use new `ffi/netinfo` module
Adds 'Extra flash' setting that refreshes the cover image twice after
it is shown, reducing ghosting on affected devices (e.g. Kobo Libra 2).
Fixes#12950
Includes:
- TextLang, hyphenation: add Malayalam (ml)
- findText(): return list of ldomXRange instead of ldomWord
- findText(): implement tweakable enhanced search
- cre.cpp findText() and findAllText():
Updated to handle returned ldomXRange instead of ldomWord,
and added optional searchFlags params.
ReaderTypography: add Malayalam to the list of supported languages.
my webdav server (using [dav-server](https://crates.io/crates/dav-server/)) returns
```xml
<D:collection></D:collection>
```
instead of
```xml
<D:collection/>
```
Previously rotation mode options were gated behind FileManager.instance,
which becomes nil when the Reader is opened (ReaderUI:doShowReader
explicitly closes the FileManager). This made manual rotation
inaccessible from the Reader view on all platforms, especially
noticeable on Android where hasGSensor is false and the menu otherwise
offers no way to change orientation.
Original reasoning from <https://github.com/koreader/koreader/pull/6309>:
> Before this PR we were always setting a screenmode and the checking what rotation to use, now we set rotations, and let koreader figure out what is the screenmode. (besides for the FM, which does not support landscape) now the only thing setting a screenmode is the FM.
>
> This separates the rotation (physical) from the screenmode (portrait/landscape or H>W/W>H). I did not get into why the FM has to be portrait but if someone fixes that then the rotation and screenmode will be totally independent.
Gives Hotkeys the ability to configure gamepads, at least to a degree. Advanced users might wish to use a shoulder button or a trigger as a modifier like in Tony Hawk or Devil May Cry. But in that case I suggest they might be advanced enough to make a follow-up PR as well. It's out of scope for this one anyway.
Things like deadzones might prefer to be independently configurable in the future, but then again it's a reader app.
Depends on <https://github.com/koreader/koreader-base/pull/2376>.