learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

Look into adding Cmd C Cmd X Cmd V shortcuts for macOS users in the browser

Open NathanLovato opened this issue 2 years ago • 2 comments

In the browser, the app can't know if a user is on macOS. So copy-paste shortcuts use Ctrl instead of Cmd. We should look into adding Cmd shortcuts for mac users - as most keyboards don't have the key, this change will benefit mac users and be transparent to others.

We've just got to see if we can somehow add the shortcuts to the TextEdit fields. Iirc it exposes the necessary functions.

NathanLovato avatar Apr 30 '22 15:04 NathanLovato

I came here to comment on this issue.

If the editor requires Ctrl, then perhaps ignoring Cmd keys is better. I lost seconds of code! Heh.

pixelclef avatar Jun 12 '22 16:06 pixelclef

No, we can actually add the Cmd shortcuts and because this button is not on non-mac keyboards the shortcuts would just work with either Ctrl or Cmd for mac users. That's a relatively easy contribution a mac Godot user could make actually - it just takes a bit of time to make all the key presses call the right functions in code.

NathanLovato avatar Jun 12 '22 16:06 NathanLovato