So today, I encountered a strange bug, that only happens on a specified key.
I’ve linked Enum.KeyCode.F3
to ContextActionService
, and it does not fire as soon as I press the F3 key, as I release the F3 key, it fires, only as Enum.UserInputState.End
The bug happens whenever I press the F3 key, it’s supposed to return any action as possible. (Begin, Change, End)
But it only returns Enum.UserInputState.End
Here’s the code:
local cas = game:GetService("ContextActionService")
cas:BindAction(
"BuggyKey",
function(actionName, inputState, inputObject)
print(inputState) -- Only prints Enum.UserInputState.End
end,
false,
Enum.KeyCode.F3
)
Screenshots of the console while pressing:
Steps to reproduce the issue:
- Link F3 to ContextActionService, in a localscript
- Press F3 at runtime in client
- Watch the output
I haven’t tested it on any other device, so I am not 100% sure if this issue is global.
But it happens every time for me.
I’m using a Logitech G910 keyboard.