Skip to content

Commit

Permalink
Merge pull request #207 from artometa/master
Browse files Browse the repository at this point in the history
fixed incorrectly labelled api and example code (shortcut to hotkey)
  • Loading branch information
boppreh authored Sep 2, 2018
2 parents f23d1f2 + 2e96916 commit e373875
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
- [Windows] Added more Windows virtual key codes for key name mapping (should fix .e.g "?").
- [All] Fixed canonicalization removing too much space (thanks @iliazeus).
- [All] Added `start_recording` and `stop_recording` for more flexible macros (thanks @softuser25 for the suggestion).
- [All] Added `read_shortcut` function.
- [All] Added `get_shortcut_name` function.
- [All] Added `read_hotkey` function.
- [All] Added `get_hotkey_name` function.
- [All] Cleaned up `examples` folder and added more examples.


Expand Down
2 changes: 1 addition & 1 deletion examples/customizable_hotkey.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import keyboard

print('Press and release your desired shortcut: ')
shortcut = keyboard.read_shortcut()
shortcut = keyboard.read_hotkey()
print('Shortcut selected:', shortcut)

def on_triggered():
Expand Down

0 comments on commit e373875

Please sign in to comment.