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

[CLOSED] KeyBindingManager no longer warns / prevents binding collisions #2852

Open
core-ai-bot opened this issue Aug 29, 2021 · 5 comments
Open

Comments

@core-ai-bot
Copy link
Member

Issue by peterflynn
Monday Mar 04, 2013 at 00:24 GMT
Originally opened as adobe/brackets#3032


Place the following code in an extension:

KeyBindingManager.addBinding(Commands.FILE_OPEN_FOLDER, "Ctrl-E");

Result: Quick Edit binding is silently overwritten. No console warnings.

Expected: We used to print warning messages and ignore the attempt at overwriting the binding. KeyBindingManager._addBinding() still contains several bits of code that seem like they should do this, but the logic has gotten pretty convoluted so I'm not sure in which cases they'll run anymore.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Monday Mar 04, 2013 at 00:25 GMT


Here's the original repro case, slightly trickier, that I found in the Clojure extension:

    KeyBindingManager.addBinding(Commands.FILE_OPEN_FOLDER, [
        {
            "key": "Ctrl-E"
        },
        {
            "key": "Cmd-E",
            "platform": "mac"
        }
    ]);

@core-ai-bot
Copy link
Member Author

Comment by njx
Wednesday Mar 06, 2013 at 18:51 GMT


Reviewed. Low priority to@dangoor

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Monday Mar 11, 2013 at 21:39 GMT


FBNC@peterflynn. We still allow platform-specific overrides to clobber a generic binding, but not the other way around.@WebsiteDeveloper's fix will show errors in the case you've described here as well when clobbering a generic binding with another generic binding.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Sep 04, 2013 at 23:14 GMT


We certainly do warn now, though not always at the right times -- see #4265 for more up to date discussion. Closing this one.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Thursday Sep 05, 2013 at 16:06 GMT


Verified that this is fixed in pull request adobe/brackets#5066.

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

No branches or pull requests

1 participant