Skip to content
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

Warn you before binding a new shortcut if another shortcut is bound to that key #49527

Open
hazlema opened this issue Jun 12, 2021 · 3 comments

Comments

@hazlema
Copy link

hazlema commented Jun 12, 2021

Godot version

3.3.2.stable

System information

Linux Mint 19.3 Tricia x86_64

Issue description

If you assign a key bind in shortcuts that is already bound this is allowed.
There should be a popup telling you that key is already bound and offer you the option to unbind it or cancel.

Steps to reproduce

Editor : Settings : Shortcuts
Bind a key combination that is already bound.

Minimal reproduction project

No response

@Calinou
Copy link
Member

Calinou commented Jun 12, 2021

Binding a single key to multiple shortcuts is valid in many scenarios because some shortcuts are only effective if their dock is currently visible or focused. Due to this, I'd display a warning dialog in this case but I wouldn't prevent binding the same key to multiple shortcuts.

Note that the editor shortcut system is being revamped here, so a pull request will likely have to wait for that PR to be merged first.

@EricEzaM
Copy link
Contributor

This is for sure a duplicate, but the issue is that there are different contexts in the editor (at least in 4.0, 3.X does not have this feature). E.g. a shortcut being Ctrl+A in the Scene Tree and another shortcut being the same in the Animation Editor is perfectly fine, as they won't overlap. However the shortcut editor in Editor Settings doesn't know about these contexts so you would potentially get a lot of false positives saying that there is a shortcut conflict when there really isn't.

Note this overall issue should be helped in 4.0 by #42109, which implemented shortcut contexts, so, for example, pressing Ctrl+A in the script editor won't select all text AND open the "New Node" dialog.

@EricEzaM
Copy link
Contributor

Found it #47593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants