Skip to content

Commit

Permalink
debug shift clears buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
junhg0211 committed Jul 23, 2024
1 parent 965d162 commit 8a93db6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def on_press(self, key):
self.buffer.clear()
return

if key in [Key.shift, Key.shift_l, Key.shift_r]:
return
if not hasattr(key, "char"):
self.buffer.clear()
return
Expand Down

0 comments on commit 8a93db6

Please sign in to comment.