PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Merge remote-tracking branch 'origin/main' into select-all-document
SBaksae37fd2761975
diff --cc crates/ui-egui/src/canvas.rsindex 79e21538e,f8df86fb3..af88c0739--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@@ -2330,13 -2515,13 +2561,14 @@@ pub fn shortcuts(view: &mut DocView, ctif pressed(cmd(Key::CloseBracket)) {view.view_history(true);}- let key = |k| ctx.input(|i| i.key_pressed(k));- if key(Key::Escape) {+ let key = |k| (arrows || !matches!(k, Key::ArrowLeft | Key::ArrowRight | Key::ArrowUp | Key::ArrowDown)) && ctx.input(|i| i.key_pressed(k));+ // An open menu takes Escape first and closes; the selection stays for the next one (#3535).+ if key(Key::Escape) && !egui::Popup::is_any_open(ctx) {if view.camera.is_some() || view.camera_done.is_some() {view.pending_action = Some(ViewAction::CancelCamera);- } else if view.selection.is_some() {+ } else if view.selection.is_some() || view.all_text {view.selection = None;+ view.all_text = false;} else {view.find = None;}diff --cc parity/acrobat-features.tomlindex 9ddac693c,45dda3982..6c29bad81--- a/parity/acrobat-features.toml+++ b/parity/acrobat-features.toml@@@ -1550,8 -1550,8 +1550,8 @@@ milestone = "M3status = "shipped"commands = []tools = []- evidence = ["crates/ui-egui/tests/viewer.rs::view_history_select_all_and_find_options", "crates/ui-egui/src/canvas.rs::select_all_copies_the_whole_document_while_scrolling_continuously", "crates/ui-egui/src/canvas.rs::select_all_of_the_document_only_while_scrolling_through_several_pages"]-evidence = ["crates/ui-egui/tests/it/viewer.rs::view_history_select_all_and_find_options"]-notes = "⌘A on the current page"++evidence = ["crates/ui-egui/tests/it/viewer.rs::view_history_select_all_and_find_options", "crates/ui-egui/src/canvas.rs::select_all_copies_the_whole_document_while_scrolling_continuously", "crates/ui-egui/src/canvas.rs::select_all_of_the_document_only_while_scrolling_through_several_pages"]+notes = "⌘A: the current page one page at a time; the whole document scrolling continuously (#2639), copied whole"[[feature]]id = "view.copy-with-layout"