When playtesting in Roblox Studio, an UserInputService InputBegan function checking if C or X keys have been pressed will not detect the keys if the shift key is pressed down during the firing of the event.
This does not occur to any other key on the keyboard. When focusing on the Chat element, the C and X keys are detected again while inputting into the chat.
This bug does not occur in the Roblox Player.
Beta features being enabled/disabled do not seem to have an effect on the bug.
The bug appears to have started occuring as of June 26.
Reproduction file: UserInpuService Strange bug.rbxl (49.2 KB)
(Run the reproduction file in studio with a playtest, not from the Player)
Reproduction script itself:
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode==Enum.KeyCode.LeftShift then
print("PRESSING SHIFT")
else
print(input.KeyCode)
end
end)
In the video I constantly try to press the C and X keys while pressing down Shift, but they dont print
Expected behavior
Expected behaviour: C and X keys are outputted when pressed down even if Shift key is being held down.