Skip to content

Commit

Permalink
Merge pull request #85 from caneeeeee/caneeeeee/macos-auto-clicker
Browse files Browse the repository at this point in the history
fix: Prevent saving empty key values in input handling
  • Loading branch information
othyn authored Jan 29, 2025
2 parents 8ee746e + d293a41 commit 2c3829d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct PressKeyListenerModal: View {
return
}

if input.keyCode != kVK_Escape || (input.keyCode == kVK_Escape && self.escapeKeyStreak > 1) {
if (input.keyCode != kVK_Escape || (input.keyCode == kVK_Escape && self.escapeKeyStreak > 1)) && !input.readable.isEmpty {
self.formState.pressInput = input

self.escapeKeyStreak = 0
Expand Down

0 comments on commit 2c3829d

Please sign in to comment.