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

Add macOS keyboard shortcuts

Open milanvarady opened this issue 2 years ago • 2 comments

On macOS, you use the Command key to do most of the things you would do with the Control key on other operating systems, such as copying (Command+C), pasting (Command+V), selecting everything (Command+A). But in this demo these shortcuts doesn't work, they work with the Control key, which is pretty annoying if you are used to the macOS way of doing things.

And also on a Mac you can use shortcuts such as CTRL+A to go to the beginning of the line, CTRL+E to go to the end of the line, and CTRL+F to go one character forward. I personally use these a lot when I'm coding to move in the text more quickly.

Here are the list of all shortcuts, look at the Document shortcuts section.

The cursor shortcuts are not that important, but the Command ones are. This may be more a Godot issue, but it would be nice to have it.

milanvarady avatar Jan 04 '22 17:01 milanvarady

I did some experimenting and this seems to be an issue with Godot itself. Everything I described works if I run it on the Mac export, but when I run it in the browser, it produces these issues. I created a feature request on godot-proposals.

milanvarady avatar Jan 04 '22 18:01 milanvarady

I added the wontfix label as it's a Godot issue indeed, this happens with the built-in shortcuts.

The WebGL context is sandboxed in your browser and I don't know if we could even know you're on MacOS. We'll have to see that for our own shortcuts that currently all use Ctrl.

NathanLovato avatar Jan 05 '22 02:01 NathanLovato