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

@@ -412,6 +412,7 @@ function ReaderMenu:exitOrRestart(callback, force)
end
function ReaderMenu:onShowMenu(tab_index, do_not_show)
self.ui.highlight:onStopHighlightIndicator(true) -- stop any text selection in progress, if applicable
if self.tab_item_table == nil then
self:setUpdateItemTable()
end