Commit Graph
1776 Commits
Author SHA1 Message Date
poire-z 61f4542b6b Wikipedia full: avoid crash when not available in other languages 2026-04-19 22:39:21 +02:00
hius07 c5c0b1aa0c inputtext: undo (#15238) 2026-04-10 17:40:56 +03:00
hius07 0b2173297f ReaderBookmark, BookmarkBrowser: unified bookmark details window (#15250) 2026-04-09 19:54:03 +03:00
David 9cef2f1198 [MultiInputDialog] Split password field and checkbox (#15234) 2026-04-08 10:26:33 +02:00
hius07 8e8ca98c37 Book status: reset rating (#15227) 2026-04-04 17:43:10 +03:00
hius07 f48f68f311 File browser: fix "Folders and files mixed" menu item (#15202) 2026-03-28 16:45:12 +02:00
David 15f86981a5 [DictQuickLookup] detection and key-event injection for SDL devices (#15158) 2026-03-25 14:52:20 +00:00
hius07 c8fecc8a8a bookmarkbrowser: default book source (#15143) 2026-03-21 17:32:38 +02:00
David 80cb27dbf5 [HtmlBoxWidget, DictQuickLookup] add capability to search within dictionary definitions (#15001)
Adds in-definition search to DictQuickLookup relaying on MuPDF's word-matching implementation, uses tap handling for navigation by allowing temporary disable/restore of Tap events.
2026-03-21 13:29:45 +00:00
poire-z 9e44aa5cf4 Footnote popup: add option to justify (or not) text (#15129) 2026-03-21 08:56:54 +01:00
hius07 886a8cf400 Export highlights: filters (#15003) 2026-03-20 09:18:01 +02:00
David bed8f558fa Switch virtual keyboard default to false on hasKeyboard (#15057) 2026-03-07 08:24:16 +01:00
Frans de Jonge d4f99025f5 [fix] BookStatusWidget: remove unused (#15060) 2026-03-02 17:54:21 +01:00
Frans de Jonge 6783e7bd1d BookStatusWidget: fix impossible to exit review editing due to focus loop (#15055)
Due to the way this was wired, #14937 trigged BookStatusWidget:onSwitchFocus() when closing, which caused the review input dialog to pop right back up again.

But it doesn't look like you're actually supposed to be able to type in there at all, so I replaced it with a TextBoxWidget.
2026-03-01 21:51:53 +01:00
David 34c77238e0 [DictQuickLookup] NT: fix utf8 byte drift during text selection (#15015)
* refactor handling of faked event HoldRelease for text selection on NT, make sure we close the cycle properly so we don't get any byte drift when dealing with non-ascii characters.
2026-02-24 22:08:32 +00:00
hius07 77d1ae8911 InputDialog: fix adding widget with 'fullscreen' (#15028) 2026-02-24 17:23:14 +02:00
hius07 2c5dae9efd bookmarkbrowser: fix search (#15022) 2026-02-21 20:40:33 +02:00
hius07 18090dfc42 inputdialog: fix adding widget with 'use available height' (#15010) 2026-02-21 19:56:11 +02:00
David 642ec66d68 [InputText, ReaderStyleTweak] Add copy/paste to NT devices (#14941)
Closes #12772.
2026-02-06 22:44:50 +01:00
David 3103627ff9 [DictQuickLookup] NT: add key_event for following links and switching (dict-wiki) domains (#14909)
* Removed the hold-duration logic for switching between dictionary and wiki lookups, simplifying the process and removing timing-based domain switching, this was a terrible idea on my part (in hindsight, the implementation I mean). 
* Added a new `TextSelectorModifierPress` key event and corresponding handler (`onTextSelectorModifierPress`) to explicitly switch domains (Dict <-> Wiki) during text selection, and for following links inside dictionary entries, thus making the feature more discoverable and reliable.
* Refactored the lookup logic into a dedicated `_performLookupOnSelection` function, improving code clarity.
* Updated the gesture coordinate calculation in `_createTextSelectionGesture` to use `text_widget` absolute position instead of `definition_widget`, ensuring correct screen coordinates and accounting for container padding.
2026-02-06 11:27:35 +01:00
David 0fb2840a0d [InputText] Decouple text input state from VirtualKeyboard visibility pt. 2 (#14937)
Follow-up to https://github.com/koreader/koreader/pull/14901
2026-02-05 23:59:47 +01:00
David 2cb6f157ff [TextViewer] bug fix, don't crash on Menu press (#14936) 2026-02-05 17:03:34 +01:00
David 66e22590ef [NT] ImageViewer: add pan key_events to viewer (#14938)
Fixes #14934.
2026-02-05 16:25:11 +01:00
hius07 18dd8db12d Bookmark browser: fix item font size init (#14926) 2026-02-04 21:03:37 +02:00
David 8285f4e3bb [InputText] Decouple text input from VirtualKeyboard visibility (#14901)
Previously, on SDL targets (Desktop, Ubuntu Touch), the system text input loop was gated by the visibility of the On-Screen Virtual Keyboard. Hiding the VK would call Device:stopTextInput, effectively disabling the physical keyboard.

This commit binds the text input state to the lifecycle of the InputText widget instead:

* Improve up/down behavior. Down at the end of an input moves focus down, up at the beginning moves focus up.

* Undo removal of key_event for touch devices, allowing vk to work regardless of vk state, #FreeTheKeyboard
2026-02-03 22:10:53 +01:00
hius07 08ea73f733 Bookmark browser (#14899)
* Add BookmarkBrowser widget

* filemanager: add bookmark browser

* filemanagercollection: add bookmark browser

* filemanagerhistory: add bookmark browser

* readerui: add after_open_callback to showReader()

* filemanager_menu_order: add bookmark browser

* reader_menu_order: add bookmark browser

* dispatcher: add bookmark browser

* util: add stringLower()

* bookmarkbrowser: show chapter in bookmark details

* bookmarkbrowser: detect currently opened new book

* readerbookmark: fix updating BookInfo cache on removing a bookmark
2026-02-03 08:02:07 +02:00
hius07 ae09757e48 ReaderBookmark: color in bookmark list (#14714) 2026-01-30 07:54:48 +02:00
hius07 b2b02e7813 Highlights: improve 'Set color' dialog (#14699) 2026-01-30 07:50:04 +02:00
poire-z 34f9f3c5ec TextBoxWidget: invert images when in night mode (#14893)
So Wikipedia articles images don't look inverted.
2026-01-29 00:44:22 +01:00
poire-z e1c5f35d37 Wikipedia: revamp languages handling
Replace the cumbersome implementation of language rotation
with a more natural language selection:
- replace the "en > fr" button with a "Language" button,
  which on tap shows a popup with the user languages allowing
  direct selection (instead of having to rotate through
  all the intermediate languages and wait for each result)
- we don't touch anymore the user-set wikipedia_languages
  array when switching language
- the newly selected language is stored in doc_settings, and
  will be used for next queries on this book. It is also
  stored in G_reader_settings as the language to be used
  for next newly opened books and for lookups done when
  in FileBrowser

Also:
On Wikipedia full articles, the top left hamburger menu
shows a popup with the other Wikipedia languages the
current article is available for, and allows reading
them.
Wikipedia article ToC: the 'sections' properties
of the Wikipedia API is now deprecated: use its
replacement 'tocdata'.
2026-01-08 21:11:30 +01:00
poire-z 43d52a1c08 ScrollTextWidget: fix resetScroll()
Could cause some refreshes (actually triggered when
the scrollbar changes) in DictQuickLookup to be ignored
in some rare circonstances (2 consecutive results from
a text dictionary having the exact same nb of lines).
2026-01-08 21:11:30 +01:00
poire-z e72ca3045e KeyValuePage, scrollablecontainer: allow mousewheel scrolling 2026-01-08 21:11:30 +01:00
hius07 6dbc1be8fa Status bar: adjustable font face (#14755) 2026-01-06 13:25:19 +02:00
hius07 5b2f2cbdb3 Sleep screen: improve 'Exit sleep screen' message (#14691) 2025-12-10 14:17:58 +02:00
hius07 776eb69184 screensaverwidget: fix unlock (#14689) 2025-12-10 14:17:26 +02:00
hius07 9dc068b50d TextViewer: pin page (#14668) 2025-12-09 07:43:23 +02:00
poire-z fd54ddbd8f TextBoxWidget: clear highlights when hold release on an image
Otherwise, any highlight made while panning would stick even
after we show and close ImageViewer, even when turning pages.
2025-12-08 13:18:51 +01:00
poire-z 8723b25f9e Menu: avoid crash with large post_text
Currently not met with our current use of it,
but let's avoid this crash when experimenting.
2025-12-08 13:18:51 +01:00
Benoit Pierre 60a475773c progressbardialog: fix refresh 2025-11-28 08:43:41 +01:00
Benoit Pierre ea3a8a7dbe progressbardialog: support dismissing the dialog 2025-11-28 08:43:41 +01:00
Benoit Pierre d6310207f7 progressbardialog: tweak API
So `reportProgress` returns true when the progress bar was actually updated.
2025-11-28 08:43:41 +01:00
Benoit Pierre 6ce4b5d8ee inputcontainer: handle horizontal center alignment 2025-11-28 08:43:41 +01:00
hius07 bf8274d47c Show next locations in Book map and Page browser (#14643) 2025-11-23 08:48:17 +02:00
hius07 7a6c4db693 TouchMenu: fix menu height with/without separators (#14627) 2025-11-18 08:38:07 +02:00
hius07 6beff03d49 Stable pages in file browser (#14570) 2025-11-07 08:19:41 +02:00
hius07 7d3d51add4 Gestures/profiles: allow disabling popup messages (#14543) 2025-11-05 07:48:08 +02:00
hius07 7ac0f6edd1 BookMap: add indicator for pinned page (#14510) 2025-10-29 07:58:52 +02:00
hius07 b7d227a2cf Status bar fixes (#14518) 2025-10-28 08:27:39 +02:00
hius07 88f8224746 touchmenu: fix empty submenu (#14489) 2025-10-22 10:44:46 +03:00
Frans de Jonge b28a6e5ca9 HTMLBoxWidget: add setRawContent() (#14480) 2025-10-19 19:16:53 +02:00