You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [ key on a US QWERTY keyboard reports as KEY_BRACELEFT instead of KEY_BRACKETLEFT from InputEventKey.scancode. The same is true for the new physical_scancode prop as well. This mixup also applies to the right bracket ] (KEY_BRACKETRIGHT/KEY_BRACERIGHT).
This is on Windows for a Windows build (plus running from in editor, of course). And, yet, on an HTML5 build, [ reports correctly as KEY_BRACKETLEFT in a browser. (Except when hitting Shift+[ in a browser which reports as KEY_BRACELEFT -- which is, uh, maybe a browser quirk? Ignore that for now perhaps.)
Steps to reproduce
Here's a code fragment:
func_input(event):
varcode : intifeventisInputEventKeyandnotevent.echo:
code=event.scancode#code = event.physical_scancodeelse:
returnmatchcode:
#KEY_BRACKETLEFT: # [ (BUG: does not work on windows, shift+[ does not work in browser)KEY_BRACELEFT: # { (BUG: [ on win, shift+[ on browser)print(code)
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
Godot version
3.3.4 and 3.4
System information
Windows 10, US QWERTY keyboard
Issue description
The
[
key on a US QWERTY keyboard reports as KEY_BRACELEFT instead of KEY_BRACKETLEFT fromInputEventKey.scancode
. The same is true for the newphysical_scancode
prop as well. This mixup also applies to the right bracket]
(KEY_BRACKETRIGHT/KEY_BRACERIGHT).This is on Windows for a Windows build (plus running from in editor, of course). And, yet, on an HTML5 build,
[
reports correctly as KEY_BRACKETLEFT in a browser. (Except when hittingShift+[
in a browser which reports as KEY_BRACELEFT -- which is, uh, maybe a browser quirk? Ignore that for now perhaps.)Steps to reproduce
Here's a code fragment:
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: