Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/pynput/keyboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
(Key.alt, (Key.alt.value, Key.alt_l.value, Key.alt_r.value)),
(Key.cmd, (Key.cmd.value, Key.cmd_l.value, Key.cmd_r.value)),
(Key.ctrl, (Key.ctrl.value, Key.ctrl_l.value, Key.ctrl_r.value)),
(Key.shift, (Key.shift.value, Key.shift_l.value, Key.shift_r.value)))
(Key.shift, (Key.shift.value, Key.shift_l.value, Key.shift_r.value)),
(Key.space, (Key.space.value,)), # added space to _MODIFIER_KEYS
(Key.tab, (Key.tab.value,)), # added tab to _MODIFIER_KEYS
)

#: Normalised modifiers as a mapping from virtual key code to basic modifier.
_NORMAL_MODIFIERS = {
Expand Down