-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
removes the dev mode access key binding safeguard #15044
Conversation
Check |
Experienced this problem myself, and can confirm removing the check fixes the issue. I'm open to a different approach if it still works on non-Apple OS :) |
@ellatrix @draganescu any more thoughts to this? Is there any other approach? It's getting annoying not to be able to develop Gutenberg unless I have this patch applied :) |
5c7659c
to
e4d7530
Compare
I've redone this with adding a check for Apple platform, I would need someone to confirm it is working on other systems and not throwing an error anymore. @ellatrix if it looks good to you maybe you can approve this? |
I can confirm this works in Ubuntu OS (Linux). |
/** | ||
* Return true if platform is MacOS. | ||
* | ||
* @param {Object} _window window object by default; used for DI testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not using it here, so it can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make non-Apple users happy again!
Description
This removes the safeguard introduced in #14681 that would prevent devs to assign shortcuts containing alt + shift. All shortcuts that use the
access
key will be alt shift on linux and windows and ctrl alt on mac. Throwing therefore the error would require to check that the current env is apple but would not prevent someone on, say, linux to set it.@ellatrix if you have any other idea it'd be great :)