Describe the bug
In the documentation for isHotkeyPressed, it says that if you pass an array of hotkeys in, the function will return true if at least one of the keys is pressed. However, the function only returns true if every hotkey is pressed.
I believe the issue is here, where the function is .every() where I believe it should be .some().
I might have misunderstood the API documentation though!
To Reproduce
Steps to reproduce the behavior:
Call isHotkeyPressed with an array of different hotkeys
Press at least one, but not all, of the hotkeys. The function will return false instead of true.
Describe the bug In the documentation for
isHotkeyPressed
, it says that if you pass an array of hotkeys in, the function will returntrue
if at least one of the keys is pressed. However, the function only returnstrue
if every hotkey is pressed.I believe the issue is here, where the function is
.every()
where I believe it should be.some()
.I might have misunderstood the API documentation though!
To Reproduce Steps to reproduce the behavior:
isHotkeyPressed
with an array of different hotkeysfalse
instead oftrue
.