Reproduction Steps
- Insert a
LocalScript
in a runnable folder and type the following code:
game:GetService("ContextActionService"):BindAction("Test",function()
print("hi")
end,false,Enum.KeyCode.W)
The above code works with tested main buttons (ButtonB
, ButtonR2
, ButtonA
, S
, etc.).
- Press the “Escape” button and check the output.
It does appear that not all buttons get triggered, such as E
or O
, even though one is unbound, and the other one is Core-bounded.
Expected Behavior
The button in the parameter should not act as Escape.
Actual Behavior
The button typed in the parameter acts as triggered upon pressing Escape.
Issue Area: Engine
Issue Type: Other
Impact: High
Frequency: Constantly
Focia19
(Focia19)
#2
We were able to reproduce your issue. We’ve filed a ticket to our internal database, and we’ll follow up when we have an update!
Thanks for the report!
2 Likes
sircfenner
(sircfenner)
#3
Not a bug, you need to use the parameters passed to your action callback:
2 Likes
Focia19
(Focia19)
#4
Closing this thread as it seems this is working as intended, indeed!