quadratic icon indicating copy to clipboard operation
quadratic copied to clipboard

Fix clipboard issue

Open bartbroere opened this issue 1 year ago • 2 comments

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.

bartbroere avatar Apr 22 '23 09:04 bartbroere

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-434.de5w5iglj13on.amplifyapp.com

Screenshot 2023-04-23 at 8 26 26 AM Sounds like for letter keys that change in different layouts using .key is better and for modifier keys the .code is better

davidkircos avatar Apr 23 '23 15:04 davidkircos

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.

bartbroere avatar Apr 24 '23 15:04 bartbroere

Fixes #426

jimniels avatar Apr 25 '23 02:04 jimniels