-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Custom keyboard shortcuts don't override default behavior #12164
Comments
Is this still reproducible in Godot 3.0 RC1? Also, aren't the "default behaviors" also defined in the editor shortcuts? If so you might need to undefine them if you want to override them. |
The bug is still there but the behavior changed slightly. The "default behavior" in this case for PageUp and PageDown is just to scroll by one page. Maybe this is handled differently than other shortcuts? Edit: Edit2: |
So yeah, I have changed the default "QWER" shortcut functionality in the spacial editor and the changes have zero effect. |
Soo, some keys do have default behavior, like mentioned PageUp. While it doesn't make sense to have shortcuts that override e.g. End or Home, there are some key combinations that are not used, e.g. Control + PageUp or Alt + End. Right now it's impossible to use them as shortcuts, because Alt + End acts as End etc. This could be easily fixed by ignoring certain non-shortcut key combinations in TextEdit. |
Operating system or device, Godot version, GPU Model and driver (if graphics related):
Godot 2.1.4
Godot 3.0 (built from master)
Issue description:
When using custom shortcuts, default behavior is executed before shortcut-behavior is executed.
Steps to reproduce:
Override keyboard shortcuts for 'Script Editor / Next Script' with Ctrl+PageDown
Override keyboard shortcuts for 'Script Editor / Previous Script' with Ctrl+PageUp
Use shortcuts in script editor.
When pressing Ctrl+PageUp see that cursor jumps to the first line of the file before going to previous script.
When pressing Ctrl+PageDown see that cursor jumps to the last line of the file before going to next script.
The text was updated successfully, but these errors were encountered: