Skip to content

Commit

Permalink
Remove log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpp521 committed Nov 14, 2019
1 parent 011715a commit 752ba9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Release Note
### v1.1.1
- Remove log message.
___
### v1.1.0
- Currently, the trigger function supports arguments.
- No longer need to call manager.start() manually.
Expand Down
2 changes: 1 addition & 1 deletion PyHotKey/_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# @Email : [email protected]
AUTHOR = 'Xpp'
AUTHOR_EMAIL = '[email protected]'
VERSION = 1.1.0
VERSION = '1.1.1'
2 changes: 0 additions & 2 deletions PyHotKey/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,12 @@ def __on_press(self, key):
if key in self.__pressed_keys:
return
self.__pressed_keys.append(key)
print('【pressed】{}'.format(key))
for hot_key in self.__hot_keys:
if HotKeyType.MULTIPLE == hot_key.type and all([key in self.__pressed_keys for key in hot_key.keys]):
self.__exec_trigger(hot_key)

def __on_release(self, key):
self.__pressed_keys.remove(key)
print('【released】{}'.format(key))
for k in self.__hot_keys:
if HotKeyType.SINGLE == k.type and key in k.keys:
hot_key = k
Expand Down

0 comments on commit 752ba9d

Please sign in to comment.