Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Open

Description

@bengourley

edit by @rsese: repro-ed by @rafeca #19168 (comment) :

I've just been able to reproduce the issue with my british laptop keyboard.

  1. I've forced the "British - PC" keyboard layout:

Screen Shot 2019-04-23 at 21 14 32

  1. 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

Description

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.

image

The key binding resolver says this:

image

I have nothing in my keymap.cson.

Steps to Reproduce

  1. Open Atom
  2. Open multiple windows (cmd+shift+n)
  3. 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:

#11531 - old, closed
atom/keyboard-layout#39 - new, different behaviour

Activity

  1. rsese commented on Apr 22, 2019

    @rsese
    Contributor

    Thanks for the report @bengourley - just to clarify:

    I am using an external keyboard which has a British PC layout with the backtick key in the top-left.

    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 PC for me (so I have\ in the top left):

    keyboard-settings

    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.

  2. bengourley commented on Apr 23, 2019

    @bengourley
    Author

    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).

  3. bengourley commented on Apr 23, 2019

    @bengourley
    Author

    On macOS 10.12.6 with 1.36.0, I don't see all the behavior you describe my laptop keyboard - British PC for me (so I have\ in the top left):

    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

    😕

  4. lee-dohm commented on Apr 23, 2019

    @lee-dohm
    Contributor

    @rafeca Would you mind attempting to reproduce this?

  5. rafeca commented on Apr 23, 2019

    @rafeca
    Contributor

    @rafeca Would you mind attempting to reproduce this?

    I've just been able to reproduce the issue with my british laptop keyboard.

    1. I've forced the "British - PC" keyboard layout:

      Screen Shot 2019-04-23 at 21 14 32
    2. 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.

  6. rsese commented on Apr 23, 2019

    @rsese
    Contributor

    Thanks @rafeca 🙇

  7. henrytndrly commented on May 3, 2019

    @henrytndrly

    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... \)

  8. self-assigned this
    on May 7, 2019
  9. rafeca commented on May 7, 2019

    @rafeca
    Contributor

    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

  10. 12 remaining items

  11. bengourley commented on Dec 3, 2019

    @bengourley
    Author

    Sorry @lkashef I missed the notification for your comment.

    Yes it works when the layout is set to British.

  12. lkashef commented on Dec 6, 2019

    @lkashef
    Contributor

    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 :).

  13. bengourley commented on Dec 6, 2019

    @bengourley
    Author

    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)

  14. lkashef commented on Dec 6, 2019

    @lkashef
    Contributor

    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.

  15. Paalon commented on Mar 8, 2020

    @Paalon

    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.

  16. mjaggard commented on Apr 9, 2021

    @mjaggard

    @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.

  17. mjaggard commented on Apr 9, 2021

    @mjaggard

    Just as an aside, this issue is now fixed in Electron apparently - in version 10+ electron/electron#27701

  18. removed their assignment
    on Apr 9, 2021
  19. sadick254 commented on Apr 29, 2021

    @sadick254
    Contributor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions