GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Mac OS X "Invalid key shortcut sound" on ⌃⌘↓ · Issue #44070 · microsoft/vscode

Mac OS X "Invalid key shortcut sound" on ⌃⌘↓ #44070

New issue
Copy link
New issue
Copy link
Closed
Closed
Mac OS X "Invalid key shortcut sound" on ⌃⌘↓#44070
Copy link
Assignees
Tyriar
Labels
*out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS CodeelectronIssues and items related to ElectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)

Description

@varkor
varkor (varkor)
opened on Feb 20, 2018
Issue body actions
  • VSCode Version: 1.20.1
  • OS Version: 10.11.6

Steps to Reproduce:

  1. Press ⌃⌘↓ in the text editor. The "invalid key shortcut" sound will be played. (This is also the case for ⌃⌘← and ⌃⌘→.
  2. Press ⌃⌘↑. The "invalid key shortcut" sound will not be played.

There's clearly something going funny here, because up and down have different behaviour. These sounds play even if they are valid key shortcuts.

Reacted by Hiroaki KARASAWA, Larry Gritz, Yoni Amir and Keshav Carpenter

Activity

  1. vscodebot
    added
    editor
    editor-coreEditor basic functionalityEditor basic functionality
    on Feb 20, 2018
  2. RMacfarlane commented on Feb 21, 2018

    @RMacfarlane
    Rachel Macfarlane (RMacfarlane)
    on Feb 21, 2018
    More actions

    Blocked on electron/electron#2617

    Reacted by varkor
  3. Rachel Macfarlane (RMacfarlane)
    added
    electronIssues and items related to ElectronIssues and items related to Electron
    on Feb 21, 2018
  4. Rachel Macfarlane (RMacfarlane)
    modified the milestone: Backlog on Feb 21, 2018
  5. Rachel Macfarlane (RMacfarlane)
    assigned
    Daniel Imms (Tyriar)
    on Feb 23, 2018
  6. Tyriar commented on Feb 23, 2018

    @Tyriar
    Daniel Imms (Tyriar)
    on Feb 23, 2018
    Contributor
    More actions

    Yeah this also affects move to next/previous terminal pane keys I found recently.

  7. Daniel Imms (Tyriar)
    added
    bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
    upstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)
    and removed
    editor
    editor-coreEditor basic functionalityEditor basic functionality
    on Jun 21, 2018
  8. Daniel Imms (Tyriar)
    removed
    bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
    on Sep 12, 2018
  9. Tyriar commented on Oct 9, 2019

    @Tyriar
    Daniel Imms (Tyriar)
    on Oct 9, 2019
    Contributor
    More actions

    Both Electron and Chromium issues were closed as won't fix 😢 https://bugs.chromium.org/p/chromium/issues/detail?id=916460

    Reacted by YoungTaek and Joe Seifi
  10. Daniel Imms (Tyriar)
    closed this as completedon Oct 9, 2019
  11. Daniel Imms (Tyriar)
    added
    *out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS Code
    on Oct 9, 2019
  12. cbarrick commented on Mar 15, 2021

    @cbarrick
    Chris Barrick (cbarrick)
    on Mar 15, 2021
    More actions

    FYI for anyone else stumbling into this.

    The workaround given in the upstream Chromium issue is to setup key bindings at the OS-level that are just noops.

    $ mkdir -p ~/Library/KeyBindings
    $ cat > ~/Library/KeyBindings/DefaultKeyBinding.dict <<EOF
    {
      "^@\UF701" = "noop";
      "^@\UF702" = "noop";
      "^@\UF703" = "noop";
    }
    EOF
    

    Then restart the affected apps.

    Reacted by Larry Gritz, Yoni Amir, Donald, Byonghun Lee, Rocky and murs313
    Reacted by Mikael Carpenter and murs313
    Reacted by 0xsarawut.base.eth
  13. Tyriar commented on Mar 16, 2021

    @Tyriar
    Daniel Imms (Tyriar)
    on Mar 16, 2021
    Contributor
    More actions

    Updated FAQ in terminal to include the workaround, thanks! microsoft/vscode-docs#4395

  14. 211217613 commented on Apr 12, 2023

    @211217613
    211217613
    on Apr 12, 2023
    More actions

    so is this an issue with whatever upstream codebase vscode depends on? I get this annoying beeping sound every time I move a line down via a keyboard shortcut.

    Reacted by Bobcat
  15. cbarrick commented on Apr 14, 2023

    @cbarrick
    Chris Barrick (cbarrick)
    on Apr 14, 2023
    More actions

    so is this an issue with whatever upstream codebase vscode depends on?

    Yes. This is an issue in Chromium and thus Electron. The upstream bugs in both Chromium and Electron have been closed as "won't fix."

    • Implement keyboard actions to avoid beeps on certain key bindings electron/electron#2617
    • https://bugs.chromium.org/p/chromium/issues/detail?id=916460
  16. incanus commented on Mar 8, 2024

    @incanus
    Justin Miller (incanus)
    on Mar 8, 2024
    More actions

    Is this workaround no longer working for anyone else on macOS 14.4? Two machines, same effect and same keys as original report (i.e. ⌃⌘↑ is fine).

  17. omril1 commented on Mar 14, 2024

    @omril1
    Omri Luzon (omril1)
    on Mar 14, 2024
    More actions

    I think this bug came back after a few years

  18. cbarrick commented on Mar 16, 2024

    @cbarrick
    Chris Barrick (cbarrick)
    on Mar 16, 2024
    More actions

    Here is the new workaround from the upstream Electron bug:

    {
        "@^\UF700" = "noop:";
        "@^\UF701" = "noop:";
        "@^\UF702" = "noop:";
        "@^\UF703" = "noop:";
        "@~^\UF700" = "noop:";
        "@~^\UF701" = "noop:";
        "@~^\UF702" = "noop:";
        "@~^\UF703" = "noop:";
    }
    

    Basically, you needed to add the : at the end of noop, and the order of the modifier symbols is different.

    I've included the codes for cmd-ctrl-arrow and cmd-opt-ctrl-arrow above.

    The codes for the up arrow (700) are probably not needed.

    Details for what these codes mean are at: https://gist.github.com/trusktr/1e5e516df4e8032cbc3d

    I'm AFK, so I haven't tested this yet.

    Reacted by Justin Miller, tpilewicz, Mark Oh, michaelfy, Musterknabe and Kaijian Gao
  19. incanus commented on Mar 19, 2024

    @incanus
    Justin Miller (incanus)
    on Mar 19, 2024
    More actions

    This is working great for me on two 14.4 Macs.

  20. ewjoachim commented on Mar 4, 2025

    @ewjoachim
    Joachim Jablon (ewjoachim)
    on Mar 4, 2025
    More actions

    I keep coming back to this issue, so that's just a condensed version of the latest instructions like above meant to be found easily.

    mkdir -p ~/Library/KeyBindings/
    <<EOF > ~/Library/KeyBindings/DefaultKeyBinding.dict
    {
        "@^\UF700" = "noop:";
        "@^\UF701" = "noop:";
        "@^\UF702" = "noop:";
        "@^\UF703" = "noop:";
        "@~^\UF700" = "noop:";
        "@~^\UF701" = "noop:";
        "@~^\UF702" = "noop:";
        "@~^\UF703" = "noop:";
    }
    EOF
    Reacted by Omri Luzon, Kaijian Gao and Ulyssa
    Reacted by Omri Luzon
  21. Daniel Imms (Tyriar)
    added a commit that references this issue on Mar 4, 2025

    Update guidance around macOS invalid key sound

    f32f56e
  22. Tyriar commented on Mar 4, 2025

    @Tyriar
    Daniel Imms (Tyriar)
    on Mar 4, 2025
    Contributor
    More actions

    I've updated the docs to mention this new workaround: microsoft/vscode-docs#8112

  23. Daniel Imms (Tyriar)
    added a commit that references this issue on Mar 4, 2025

    Update guidance around macOS invalid key sound

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

Metadata

Metadata

Assignees

  • @Tyriar
    Daniel Imms (Tyriar)

Labels

*out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS CodeelectronIssues and items related to ElectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.