ContextActionService buttons act as Escape button

Reproduction Steps

  1. 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.).

  1. 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

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

Not a bug, you need to use the parameters passed to your action callback:

2 Likes

Closing this thread as it seems this is working as intended, indeed!