Closed meisterdomi closed 2 months ago
Good point, it's getting caused by the part handling alt key combinations since in many cases it modifies e.key. It was only meant to happen for the letters and numbers but it was happening for other keys like shift too. I got the fix ready and releasing a patch, so it should only trigger for "shift" and not "shiftLeft"
Describe the bug
Using a hotkey combination using
alt+...
isn't working in all cases. By relying on thecode
event property while ALT is pressed some keys like SHIFT won't work anymore because thecode
for it is eitherShiftRight
orShiftLeft
.That being said, a combination of e.g.
alt+shift+n
works ifshift
thenalt
thenn
is pressed but notalt
thenshift
thenn
as in latter case
ShiftLeft
is being used internallyTo Reproduce Create an isolated reproduction on the CodeSandox: https://codesandbox.io/p/sandbox/focused-mcnulty-llxfc9
Expected behavior
Key combinations including
alt+shift
should work independent from the pressed order.Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information): OS: MacOs Browser Chrome(latest) Version [e.g. 22] 3.1.4