quadratic
quadratic copied to clipboard
Fix clipboard issue
Just now I was using the Quadratic spreadsheet but I didn't get copying and pasting to work while using the Dvorak layout. It didn't work for Ctrl + QWERTY's C location
and for Ctrl + Dvorak's C location
.
The interchanged use of event.code
and event.key
seemed intentional, but because Ctrl + QWERTY's C
location on my pc translates to Ctrl + j
. In Chrome this opens my Downloads view.
It might be less confusing if we don't have the shortcut as Ctrl + QWERTY's C location
, but simply as Ctrl + c
.
If we want to change this for the following key shortcuts, I could also do it for all the other shortcuts that may have unintended side effects.
This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-434.de5w5iglj13on.amplifyapp.com
Sounds like for letter keys that change in different layouts using .key is better and for modifier keys the .code is better
Sounds like for letter keys that change in different layouts using .key is better and for modifier keys the .code is better
I agree, and have the category "letters" include things like the period and the slash as well. Their locations vary with different layouts.
Fixes #426