mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Change demo keyboard shortcuts to some that work in the browser
This commit is contained in:
@@ -302,9 +302,9 @@ impl DemoWindows {
|
|||||||
|
|
||||||
fn file_menu_button(ui: &mut Ui) {
|
fn file_menu_button(ui: &mut Ui) {
|
||||||
let organize_shortcut =
|
let organize_shortcut =
|
||||||
egui::KeyboardShortcut::new(Modifiers::ALT | Modifiers::SHIFT, egui::Key::O);
|
egui::KeyboardShortcut::new(Modifiers::CTRL | Modifiers::SHIFT, egui::Key::O);
|
||||||
let reset_shortcut =
|
let reset_shortcut =
|
||||||
egui::KeyboardShortcut::new(Modifiers::ALT | Modifiers::SHIFT, egui::Key::R);
|
egui::KeyboardShortcut::new(Modifiers::CTRL | Modifiers::SHIFT, egui::Key::R);
|
||||||
|
|
||||||
// NOTE: we must check the shortcuts OUTSIDE of the actual "File" menu,
|
// NOTE: we must check the shortcuts OUTSIDE of the actual "File" menu,
|
||||||
// or else they would only be checked if the "File" menu was actually open!
|
// or else they would only be checked if the "File" menu was actually open!
|
||||||
|
|||||||
Reference in New Issue
Block a user