-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use physical key for shortcuts inside the Editor #6245
Comments
Duplicate of godotengine/godot#11777 (this is considered a bug). |
This can now easily be fixed if godotengine/godot#73651 is merged. Just by adding the p_physical = true parameter here : like this :
However, there is something wrong with the button tooltip in the editor. It will say : On the tooltip display code, using as_text_keycode() instead of in the as_text() prints So @Calinou, @EricEzaM, any idea on how to make this more user friendly ? |
I don't think we can access every keyboard layout out there, so there is no way to display the actual key you should press on your current keyboard layout. |
Describe the project you are working on
Currently, when using shortcuts to select, move, rotate and scale object, we can respectively use Q, W, E and R.
This works fine when using a QWERTY layout, and it makes sense, since those keys are contiguous, and thus easy to remember and get used to.
However, it not as practical when using other layouts, including AZERTY. The shortcuts become all over the place, and hard to get used to, as they are not aligned with the buttons on the editor, nor do they have a resemblance to the action itself (think G to Grab, S to Scale, R to Rotate)
Describe the problem or limitation you are having in your project
This is just a minor annoyance, but that can be avoided, when you want to rely on shortcuts and have a keyboard layout that is not QWERTY
I theory, this won't have an impact on people using QWERTY keyboards, but would be useful for other layouts.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
I mentioned this to @akien-mga this W.E while in Fosdem, and he suggested using physical keys for the shortcuts instead of the key values, which sounds like a good solution.
That way, the four first letter of the keyboard will always map to the correct actions, regardless of keyboard layout.
This proposal's purpose, is to follow up on that discussion.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Nothing much to say; "just" need to update the shortcuts to use physical key input.
The double quotes around "just", is because I don't know exactly how to do that yet, but I'll definitely have a look to see if it's a quick fix
If this enhancement will not be used often, can it be worked around with a few lines of script?
This a QoL improvement on the editor.
It could be possible to manually change the shortcuts in the Editor preferences, but some people, including myself, would rather have an out of the box coherent experience
Is there a reason why this should be core and not an add-on in the asset library?
This is related to the editor, there is no point to have as a separate add-on, if that's even possible.
The text was updated successfully, but these errors were encountered: