Skip to content

Commit

Permalink
Merge branch 'master' into autocanon-touch-up
Browse files Browse the repository at this point in the history
  • Loading branch information
TheManWithNoHands committed Jun 28, 2024
2 parents 61ddf90 + 29d93a3 commit d0f9e72
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 27 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
2 changes: 1 addition & 1 deletion code/modules/projectiles/gun_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ DEFINES in setup.dm, referenced here.
/mob/living/carbon/human/verb/holster_verb(unholster_number_offset = 1 as num)
set name = "holster"
set hidden = TRUE
if(usr.is_mob_incapacitated(TRUE) || usr.is_mob_restrained())
if(usr.is_mob_incapacitated(TRUE) || usr.is_mob_restrained() || IsKnockDown() || HAS_TRAIT_FROM(src, TRAIT_UNDENSE, LYING_DOWN_TRAIT))
to_chat(src, SPAN_WARNING("You can't draw a weapon in your current state."))
return

Expand Down
4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6493.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6494.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6507.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6555.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6558.yml

This file was deleted.

16 changes: 16 additions & 0 deletions html/changelogs/archive/2024-06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,19 @@
iloveloopers:
- balance: Custom research chemicals with an intensityfire above or equal to 50
will now burn white.
2024-06-28:
Drathek:
- bugfix: Fixed a crash in the Hotkey menu when searching by key when filtered
- bugfix: Fixed/Added support for various keys (e.g. keypad and media keys)
Git-Nivrak:
- bugfix: Fixes being able to draw weapons when knocked down
HeresKozmos:
- maptweak: Filled in a hole in the map.
- maptweak: Fixed an area in the easter egg section of Sorokyne
coldironwarrior:
- spellcheck: fixed a few typos in the xeno bioscan announcement
kiVts:
- code_imp: Prevented potential unintended behavior with research upgrade items
on initialize
private-tristan:
- qol: Facehuggers no longer show as having any plasma
14 changes: 10 additions & 4 deletions tgui/packages/tgui/interfaces/KeyBinds.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,16 @@ export const KeyBinds = (props) => {
if (!targetEntry) {
return;
}
// If a keybind was found, scroll to the first match.
document
.getElementById(targetEntry[0])
.scrollIntoView();
// If a keybind was found, scroll to the first match currently rendered.
for (let i = 0; i < targetEntry.length; i++) {
const element = document.getElementById(
targetEntry[i],
);
if (element) {
element.scrollIntoView();
break;
}
}
}}
/>
</Flex.Item>
Expand Down

0 comments on commit d0f9e72

Please sign in to comment.