fix test
This commit is contained in:
parent
974376d404
commit
08f6c1ad5e
4 changed files with 29 additions and 2 deletions
|
|
@ -438,6 +438,9 @@ let keyState;
|
|||
|
||||
export function getCurrentKeyboardState() {
|
||||
if (keyState == null) {
|
||||
if (typeof window === 'undefined') {
|
||||
return;
|
||||
}
|
||||
keyState = {};
|
||||
// Listen for the keydown event to mark the key as pressed
|
||||
window.addEventListener('keydown', (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue