Skip to content

Commit d11e8c6

Browse files
committed
Use <Primary> rather than <Ctrl> to cross-platform bind to the Control key when calling Application.set_accels_for_action
1 parent 9409782 commit d11e8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/main_window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,8 +1392,8 @@ impl App {
13921392
// GDK key names are available here:
13931393
// https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gdk/gdkkeysyms.h
13941394

1395-
application.set_accels_for_action("win.close", &["<Ctrl>Q", "<Primary>W"]);
1396-
application.set_accels_for_action("win.recognize-file", &["<Ctrl>O"]);
1395+
application.set_accels_for_action("win.close", &["<Primary>Q", "<Primary>W"]);
1396+
application.set_accels_for_action("win.recognize-file", &["<Primary>O"]);
13971397
application.set_accels_for_action("win.display-shortcuts", &["<Primary>question"]);
13981398
application
13991399
.set_accels_for_action("win.show-preferences", &["<Primary>comma", "<Primary>P"]);

0 commit comments

Comments
 (0)