Skip to content

Commit

Permalink
Don't let egui process inputs if we're using global hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
dagit committed Nov 3, 2022
1 parent adfe155 commit b6340a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ void main() {
}
}
});
{
if self.app_config.global_hotkeys != Some(YesOrNo::Yes) {
let mut input = { ctx.input_mut() };
if let Some(hot_key) = self.app_config.hot_key_start {
if input.consume_key(hot_key.modifiers, hot_key.key) {
Expand Down

0 comments on commit b6340a9

Please sign in to comment.