Skip to content

Commit

Permalink
Fix/add key mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Jun 26, 2024
1 parent c1a5eea commit 92f6dab
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions code/_globalvars/lists/client.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,42 @@ GLOBAL_LIST_EMPTY(keybindings_by_name)
// This is a mapping from JS keys to Byond - ref: https://keycode.info/
GLOBAL_LIST_INIT(_kbMap, list(
"UP" = "North",
"ARROWUP" = "North",
"RIGHT" = "East",
"ARROWRIGHT" = "East",
"DOWN" = "South",
"ARROWDOWN" = "South",
"LEFT" = "West",
"ARROWLEFT" = "West",
"INSERT" = "Insert",
"HOME" = "Northwest",
"PAGEUP" = "Northeast",
"DEL" = "Delete",
"DEL" = "Delete", // Unlikely this is correct now
"DELETE" = "Delete",
"END" = "Southwest",
"PAGEDOWN" = "Southeast",
"SPACEBAR" = "Space",
"ENTER" = "Return",
"ALT" = "Alt",
"SHIFT" = "Shift",
"CONTROL" = "Ctrl"
"CONTROL" = "Ctrl",
"MULTIPLY" = "Multiply",
"DIVIDE" = "Divide",
"SUBTRACT" = "Subtract",
"ADD" = "Add",
"DECIMAL" = "Decimal",
"CLEAR" = "Center",
"PAUSE" = "Pause",
"CONTEXTMENU" = "Apps",
"NUMLOCK" = "Numlock",
"SCROLLLOCK" = "Scroll",
"MEDIANEXTTRACK" = "MediaNext",
"MEDIAPLAYPAUSE" = "MediaPlayPause",
"MEDIASTOP" = "MediaStop",
"MEDIAPREVIOUSTRACK" = "MediaPrev",
"VOLUMEMUTE" = "VolumeMute",
"VOLUMEUP" = "VolumeUp",
"VOLUMEDOWN" = "VolumeDown",
))

///List of ckeys that have seen a blurb of a given key.
Expand Down

0 comments on commit 92f6dab

Please sign in to comment.