File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
crates/gpui/src/platform/mac Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,18 @@ unsafe fn parse_keystroke(native_event: id) -> Keystroke {
341
341
chars_ignoring_modifiers = chars_with_cmd;
342
342
}
343
343
344
+ if !control && !command && !function {
345
+ let mut mods = NO_MOD ;
346
+ if shift {
347
+ mods |= SHIFT_MOD ;
348
+ }
349
+ if alt {
350
+ mods |= OPTION_MOD ;
351
+ }
352
+
353
+ key_char = Some ( chars_for_modified_key ( native_event. keyCode ( ) , mods) ) ;
354
+ }
355
+
344
356
let mut key = if shift
345
357
&& chars_ignoring_modifiers
346
358
. chars ( )
@@ -354,18 +366,6 @@ unsafe fn parse_keystroke(native_event: id) -> Keystroke {
354
366
chars_ignoring_modifiers
355
367
} ;
356
368
357
- if !control && !command && !function {
358
- let mut mods = NO_MOD ;
359
- if shift {
360
- mods |= SHIFT_MOD ;
361
- }
362
- if alt {
363
- mods |= OPTION_MOD ;
364
- }
365
-
366
- key_char = Some ( chars_for_modified_key ( native_event. keyCode ( ) , mods) ) ;
367
- }
368
-
369
369
key
370
370
}
371
371
} ;
You can’t perform that action at this time.
0 commit comments