You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
macOS: cmd+backtick stopped working between 1.35.1 and 1.36.0 #19168
I've just been able to reproduce the issue with my british laptop keyboard.
I've forced the "British - PC" keyboard layout:
Then, clicking on Cmd + ± on my keyboard (the correspondant to `Cmd + `` on that layout) allows to switch app windows in other apps like Google Chrome or the Finder, but it does not work in Atom.
Prerequisites
Put an X between the brackets on this line if you have done all of the following:
I use cmd+backtick to switch windows. After upgrading from 1.35.1 to 1.36.0 this behaviour stopped working. Instead, the key combination is interpreted as cmd+\ and toggles the visibility of the tree view.
This works in all other applications. It also works if I revert to Atom 1.35.1 which I have done for now.
I am using an external keyboard which has a British PC layout with the backtick key in the top-left.
The key binding resolver says this:
I have nothing in my keymap.cson.
Steps to Reproduce
Open Atom
Open multiple windows (cmd+shift+n)
Press cmd+backtick
Expected behavior: switch window
Actual behavior: tree view visibility is toggled
Reproduces how often: 100%
Versions
macOS Sierra 10.12.6
Atom 1.36.0
Electron 2.0.18
Chrome 61.0.3163.100
Node 8.9.3
Additional Information
I saw the following related issues but felt this one was different enough to warrant a separate issue:
Yeah I can reproduce with my laptop keyboard too when setting that to "British PC".
When set to "ABC - Extended" (the default for the UK mac built-in keyboard) it works as expected (the backtick is to the left of the "Z" key").
When set to "British PC", it exhibits the same behaviour as with the external keyboard (when pressing cmd+ the key to the left of "1", which is where the layout says the backtick is).
@rafeca Would you mind attempting to reproduce this?
I've just been able to reproduce the issue with my british laptop keyboard.
I've forced the "British - PC" keyboard layout:
Then, clicking on Cmd + ± on my keyboard (the correspondant to `Cmd + `` on that layout) allows to switch app windows in other apps like Google Chrome or the Finder, but it does not work in Atom.
As an additional 'piece of info', I'm experiencing the same issue with 'British - PC' behaviour of not being able to switch open windows with 'Cmd+`' (back-tic).
The behaviour I'm getting when pressing 'Cmd+`' is the standard behaviour of 'Cmd+\' (backslash), which would appear to indicate the keyboard layout as seen by @rsese, but my external keyboard shows the same keyboard layout as that shown by @bengourley (and the same layout when displaying the key layout in the Mac 'keyboard' settings screen).
'Cmd+\' behaviour works the same, which is to open the Project side bar / jump to the current file.
I am able to switch windows with 'Cmd+`' when using Chrome and other apps.
Unfortunately, there are 5 days between these nightly releases, so there are a few commits to check...
I cannot find any information on the nightly release page about the commit that it used for the build (and we don't have enough build history in the Azure pipelines), so I'm going to assume that it was the commit that was on the master branch at 5am GMT on the date of the nightly.
Hello @bengourley, I wanted to share with you the update on this issue.
After further investigation, we can’t be certain that the issue will be fixed by upgrading Electron. Because this will be a bit more involved, we’re going to work on some higher priority tasks for now while we discuss how else this might be solved. For now, the workarounds we’ve identified are: Use a different keyboard layout (e.g British), Switch the windows using cmd + alt + \. We know it’s frustrating, but this is what we have right now. Thanks for understanding :).
Yeah I don't think upgrading Electron will fix it at all. I tried out the latest version a little while ago, and was able to reproduce the same problem: #19168 (comment)
Although It might be related on some level to Electron/Chromium, but as I've mentioned in my last comment, we don't think that an electron upgrade is the solution, thus it will require us to dig deeper.
we can’t be certain that the issue will be fixed by upgrading Electron
We are currently working on higher priority tasks, but we will keep the issue on our backlog and open for the community to see it and share any updates or inputs.
We have provided a couple of work arounds (cmd + alt + \ and using British Layout), also feel free to open a PR if you have found a fix for the problem.
@lkashef Could you explain the work-arounds please? I can't see any in this thread. I thought maybe setting 'cmd-\\': null in keymap.cson might do it but apparently not. I don't want a shortcut to remove the tree view - I just want the standard Mac keyboard shortcuts to work in British English.
Atom is on electron version 9.4.4. Which is now unsupported. So we can't even get a backport of that fix electron/electron#27701 (comment). This should be fixed once we upgrade to version 10+. We are definitely keeping an eye on this issue.
Activity
rsese commentedon Apr 22, 2019
Thanks for the report @bengourley - just to clarify:
You're unable to reproduce with just your laptop keyboard correct?
On macOS 10.12.6 with 1.36.0, I don't see all the behavior you describe my laptop keyboard -
British PCfor me (so I have\in the top left):So I guess as expected for me then, when I switch to
British PC, I can't switch windows in any application or in 1.35.1/1.36.0.bengourley commentedon Apr 23, 2019
Yeah I can reproduce with my laptop keyboard too when setting that to "British PC".
When set to "ABC - Extended" (the default for the UK mac built-in keyboard) it works as expected (the backtick is to the left of the "Z" key").
When set to "British PC", it exhibits the same behaviour as with the external keyboard (when pressing cmd+ the key to the left of "1", which is where the layout says the backtick is).
bengourley commentedon Apr 23, 2019
I don't understand why your backslash is there – none of the UK layouts here feature that: https://en.wikipedia.org/wiki/QWERTY#United_Kingdom
😕
lee-dohm commentedon Apr 23, 2019
@rafeca Would you mind attempting to reproduce this?
rafeca commentedon Apr 23, 2019
I've just been able to reproduce the issue with my british laptop keyboard.
I've forced the "British - PC" keyboard layout:
Then, clicking on
Cmd + ±on my keyboard (the correspondant to `Cmd + `` on that layout) allows to switch app windows in other apps like Google Chrome or the Finder, but it does not work in Atom.rsese commentedon Apr 23, 2019
Thanks @rafeca 🙇
henrytndrly commentedon May 3, 2019
As an additional 'piece of info', I'm experiencing the same issue with 'British - PC' behaviour of not being able to switch open windows with 'Cmd+`' (back-tic).
The behaviour I'm getting when pressing 'Cmd+`' is the standard behaviour of 'Cmd+\' (backslash), which would appear to indicate the keyboard layout as seen by @rsese, but my external keyboard shows the same keyboard layout as that shown by @bengourley (and the same layout when displaying the key layout in the Mac 'keyboard' settings screen).
'Cmd+\' behaviour works the same, which is to open the Project side bar / jump to the current file.
I am able to switch windows with 'Cmd+`' when using Chrome and other apps.
(Editing to actually show backslashes... \)
rafeca commentedon May 7, 2019
I've done some bisecting on the Atom nightly releases and this got introduced in https://github.com/atom/atom-nightly-releases/releases/tag/v1.36.0-nightly11 (on https://github.com/atom/atom-nightly-releases/releases/tag/v1.36.0-nightly10 the behaviour is correct).
Unfortunately, there are 5 days between these nightly releases, so there are a few commits to check...
I cannot find any information on the nightly release page about the commit that it used for the build (and we don't have enough build history in the Azure pipelines), so I'm going to assume that it was the commit that was on the master branch at 5am GMT on the date of the nightly.
Good revision: d4fe5cc
Bad revision: c797166
During these dates there was the first attempt of upgrading to electron v3, so my current hypothesis is that this was caused by an electron upgrade
12 remaining items
bengourley commentedon Dec 3, 2019
Sorry @lkashef I missed the notification for your comment.
Yes it works when the layout is set to
British.lkashef commentedon Dec 6, 2019
Hello @bengourley, I wanted to share with you the update on this issue.
After further investigation, we can’t be certain that the issue will be fixed by upgrading Electron. Because this will be a bit more involved, we’re going to work on some higher priority tasks for now while we discuss how else this might be solved. For now, the workarounds we’ve identified are: Use a different keyboard layout (e.g British), Switch the windows using
cmd + alt + \. We know it’s frustrating, but this is what we have right now. Thanks for understanding :).bengourley commentedon Dec 6, 2019
Yeah I don't think upgrading Electron will fix it at all. I tried out the latest version a little while ago, and was able to reproduce the same problem: #19168 (comment)
lkashef commentedon Dec 6, 2019
Although It might be related on some level to Electron/Chromium, but as I've mentioned in my last comment, we don't think that an electron upgrade is the solution, thus it will require us to dig deeper.
We are currently working on higher priority tasks, but we will keep the issue on our backlog and open for the community to see it and share any updates or inputs.
We have provided a couple of work arounds (
cmd + alt + \and using British Layout), also feel free to open a PR if you have found a fix for the problem.Paalon commentedon Mar 8, 2020
I come from #19968 but it seems that the problem origins the same. VS Code has the same behavior at least in my environment, and it has the
"keyboard.dispatch"config to manage https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-mac-keybindings and it solves the behavior (of VS Code) in my environment.mjaggard commentedon Apr 9, 2021
@lkashef Could you explain the work-arounds please? I can't see any in this thread. I thought maybe setting
'cmd-\\': nullin keymap.cson might do it but apparently not. I don't want a shortcut to remove the tree view - I just want the standard Mac keyboard shortcuts to work in British English.mjaggard commentedon Apr 9, 2021
Just as an aside, this issue is now fixed in Electron apparently - in version 10+ electron/electron#27701
sadick254 commentedon Apr 29, 2021
Atom is on electron version
9.4.4. Which is now unsupported. So we can't even get a backport of that fix electron/electron#27701 (comment). This should be fixed once we upgrade to version 10+. We are definitely keeping an eye on this issue.