Merge pull request #248 from honboubao/fix-no_release

Fix Key no_release argument
This commit is contained in:
Josh Klar 2021-10-04 19:57:06 +00:00 committed by GitHub
commit fc69245c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ class Key:
self.has_modifiers = has_modifiers
# cast to bool() in case we get a None value
self.no_press = bool(no_press)
self.no_release = bool(no_press)
self.no_release = bool(no_release)
self._handle_press = on_press
self._handle_release = on_release