Skip to content

Commit d1ffcde

Browse files
authored
Fix meta not being a modifier. (#2293)
1 parent dd496ab commit d1ffcde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

druid-shell/src/backend/gtk/window.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,7 @@ const MODIFIER_MAP: &[(ModifierType, Modifiers)] = &[
14481448
// Note: this is the usual value on X11, not sure how consistent it is.
14491449
// Possibly we should use `Keymap::get_num_lock_state()` instead.
14501450
(ModifierType::MOD2_MASK, Modifiers::NUM_LOCK),
1451+
(ModifierType::MOD4_MASK, Modifiers::META),
14511452
];
14521453

14531454
fn get_modifiers(modifiers: ModifierType) -> Modifiers {

0 commit comments

Comments
 (0)