eframe web: prevent default action on command-comma (#7547)
This commit is contained in:
parent
603dba29e6
commit
6ac155c5cd
|
|
@ -227,6 +227,7 @@ fn should_prevent_default_for_key(
|
|||
|
||||
// Prevent cmd/ctrl plus these keys from triggering the default browser action:
|
||||
let keys = [
|
||||
egui::Key::Comma, // cmd-, opens options on macOS, which egui apps may wanna "steal"
|
||||
egui::Key::O, // open
|
||||
egui::Key::P, // print (cmd-P is common for command palette)
|
||||
egui::Key::S, // save
|
||||
|
|
|
|||
Loading…
Reference in New Issue