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:
Charlie
2022-07-26 18:15:02 +01:00
committed by GitHub
co-authored by AffectedArc07 S34N
parent df1eefe9e2
commit 67edcdc0e8
3 changed files with 59 additions and 8 deletions
+13
View File
@@ -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"])