Commit 9a0db2c 1 parent aeb98fd commit 9a0db2c Copy full SHA for 9a0db2c
File tree 3 files changed +12
-10
lines changed
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,8 @@ impl UICommand {
459
459
egui_ctx. input_mut ( |input| {
460
460
for ( kb_shortcut, command) in commands {
461
461
if input. consume_shortcut ( & kb_shortcut) {
462
+ // Clear the shortcut key from input to prevent it from propagating to other UI component.
463
+ input. keys_down . remove ( & kb_shortcut. logical_key ) ;
462
464
return Some ( command) ;
463
465
}
464
466
}
Original file line number Diff line number Diff line change @@ -445,11 +445,11 @@ impl ViewEye {
445
445
return false ; // e.g. we're typing in a TextField
446
446
}
447
447
448
- // Navigation should not be activated if any modifiers is pressed
449
- let modifiers_pressed = egui_ctx. input ( |input| input. modifiers . any ( ) ) ;
450
- if modifiers_pressed {
451
- return false ;
452
- }
448
+ // // Navigation should not be activated if any modifiers is pressed
449
+ // let modifiers_pressed = egui_ctx.input(|input| input.modifiers.any());
450
+ // if modifiers_pressed {
451
+ // return false;
452
+ // }
453
453
454
454
let mut did_interact = false ;
455
455
let mut requires_repaint = false ;
Original file line number Diff line number Diff line change @@ -768,11 +768,11 @@ impl App {
768
768
Some ( re_log_types:: StoreId :: random ( StoreKind :: Recording ) )
769
769
} ) ;
770
770
771
- // Clear any shortcut input before firing up any UI components
772
- egui_ctx. input_mut ( |input| {
773
- input. modifiers = Default :: default ( ) ;
774
- input. keys_down = Default :: default ( ) ;
775
- } ) ;
771
+ // // Clear any shortcut input before firing up any UI components
772
+ // egui_ctx.input_mut(|input| {
773
+ // input.modifiers = Default::default();
774
+ // input.keys_down = Default::default();
775
+ // });
776
776
777
777
match cmd {
778
778
UICommand :: SaveRecording => {
You can’t perform that action at this time.
0 commit comments