NT: stop text selection before any reflow action occurs (#14949)

* refactor onStopHighlightIndicator so it returns early

* stop text selection when opening menus or triggering hotkeys

* use self.ui.highlight (naturally)

* remove duplicated setDirty
This commit is contained in:
David authored and GitHub committed 2026-02-16 14:23:02 +00:00
1 parent 2932a4a6a2
commit 09982fe6cb
4 files changed
+16 -13

No files matched your search

@@ -135,6 +135,7 @@ function ReaderConfig:onShowConfigMenu()
covers_footer = true,
close_callback = function() self:onCloseCallback() end,
}
self.ui.highlight:onStopHighlightIndicator(true) -- stop any text selection in progress, if applicable
self.ui:handleEvent(Event:new("DisableHinting"))
-- show last used panel when opening config dialog
self.config_dialog:onShowConfigPanel(self.last_panel_index)