Skip to content
Merged
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
7 changes: 6 additions & 1 deletion arcade/key/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""

from __future__ import annotations
from sys import platform

# Key modifiers
# Done in powers of two, so you can do a bit-wise 'and' to detect
Expand All @@ -17,7 +18,11 @@
MOD_COMMAND = 64
MOD_OPTION = 128
MOD_SCROLLLOCK = 256
MOD_ACCEL = 2

# Platform-specific base hotkey modifier
MOD_ACCEL = MOD_CTRL
if platform == 'darwin':
MOD_ACCEL = MOD_COMMAND

# Keys
BACKSPACE = 65288
Expand Down