M4: the OCR Verify screen keeps F8 for the next word to review (doc.initial-view)

Main's OCR Verify screen walks the words to review with F8 and Shift+F8;
the registry's view.toggle_interface shortcut now skips while that screen
is open, so both keep working after the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
This commit is contained in:
mtlcl410
2026-11-09 01:08:50 +08:00
co-authored by Claude Opus 5.5
parent facd8364dc
commit 6b1d42d43f
+5
View File
@@ -819,6 +819,11 @@ impl PdfCraftApp {
if matches!(spec.id, "view.previous_view" | "view.next_view") && !self.command_enabled(spec) {
continue;
}
// The OCR Verify screen keeps the window's toolbars and owns F8 and Shift+F8 (the next
// and previous word to review), so they don't show or hide the interface there.
if spec.id == crate::viewer_prefs::TOGGLE && self.ocr_verify.open {
continue;
}
// A box typed into on the page (a paragraph being edited, added text) keeps Undo and
// Redo only while it holds typing the page doesn't have, or Redo has typing to put
// back; then they reach the document. ⌘⇧Z is also ⌘Z to the Undo shortcut, so a