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>
When the sync server is unreachable (offline reading, intermittent WiFi,
server down), progress updates are now queued locally instead of being
silently dropped. Queued items are drained on the next successful network
connection.
Queue behavior:
- One entry per document per day (preserves daily reading statistics)
- Entries expire after 4 weeks
- Hard cap of 200 entries as safety net
- Auth failures (401) are not queued (won't resolve by retrying)
- Queue is cleared on logout
Integration points:
- updateProgress: queues on pcall failure or non-auth callback failure
- _onNetworkConnected: drains queue before pulling remote progress
- _onCloseDocument: queues immediately if offline instead of blocking
with goOnlineToRun (avoids WiFi prompts on document close)
Fixes#9267, fixes#10678, fixes#11105
* Adds an optional setting to kill all dropbear processes when stopping the server, giving users control over whether active sessions are terminated.
* Modify signal sending to use pkill and kill
A self-closing content tag (`<content type="text"/>`) has no `">` of its own,
so the lazy `.-` in the `<content type=".-">` rewrite runs forward to the next
entry's content tag and collapses everything in between -- links included --
into a single `<content>`. luxl then parses a mangled tree: entries are dropped
and covers get paired with the wrong titles.
Normalize self-closing content tags to an empty `<content />` element before
that rewrite. Adds a regression test with a self-closing content tag between
two entries.
Fixes#15511
```
./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