Skip to content

Commit

Permalink
fix: Start a new word on non-keyboard events
Browse files Browse the repository at this point in the history
Fixes #119
  • Loading branch information
huytd committed Jun 2, 2024
1 parent 2dc02b1 commit e858bd0
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 @@ -238,7 +238,7 @@ fn event_handler(
}
INPUT_STATE.set_temporary_disabled();
}
if modifiers.is_super() {
if modifiers.is_super() || event_type == EventTapType::Other {
INPUT_STATE.new_word();
}
}
Expand Down

0 comments on commit e858bd0

Please sign in to comment.