Skip to content

fix pressed key checking#1488

Closed
damosse31 wants to merge 2 commits intoelecterm:masterfrom
damosse31:fix-pressed-key
Closed

fix pressed key checking#1488
damosse31 wants to merge 2 commits intoelecterm:masterfrom
damosse31:fix-pressed-key

Conversation

@damosse31
Copy link
Copy Markdown
Contributor

Use .key event property instead of .code to avoid differences in keyboard disposition (eg QWERTY vs AZERTY)

For example, in my case the W key on my AZERTY keyboard is inverted with your Z QWERTY keyboard. So with this fix, the real pressed letter is checked.

https://developer.mozilla.org/en/docs/Web/API/KeyboardEvent/code

Use .key event property instead of .code to avoid differences in keyboard disposition (eg QWERTY vs AZERTY)
@damosse31 damosse31 closed this Dec 31, 2019
@damosse31 damosse31 deleted the fix-pressed-key branch December 31, 2019 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant