mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
You can now walk while you have a TGUI menu focused. (#18537)
* TGUI hotkey passthrough listener * always pass keydown * dictionary * AA nit Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * AA nit part 2 Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * AA nit part 3 Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * Update tgui/packages/tgui/hotkeys.js Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
S34N
parent
df1eefe9e2
commit
67edcdc0e8
@@ -154,6 +154,19 @@
|
||||
to_chat(usr, "<span class='boldannounce'>Your ToS consent has been withdrawn. You have been kicked from the server</span>")
|
||||
qdel(src)
|
||||
|
||||
if(href_list["__keydown"])
|
||||
var/keycode = href_list["__keydown"]
|
||||
if(keycode)
|
||||
KeyDown(keycode)
|
||||
return
|
||||
|
||||
if(href_list["__keyup"])
|
||||
var/keycode = href_list["__keyup"]
|
||||
if(keycode)
|
||||
KeyUp(keycode)
|
||||
return
|
||||
|
||||
|
||||
switch(href_list["action"])
|
||||
if("openLink")
|
||||
src << link(href_list["link"])
|
||||
|
||||
Reference in New Issue
Block a user