Skip to content

Instantly share code, notes, and snippets.

@gabrielecanepa
Last active April 2, 2024 21:08
Show Gist options
  • Save gabrielecanepa/bae5a6bbb054ac707ea19b2757effedb to your computer and use it in GitHub Desktop.
Save gabrielecanepa/bae5a6bbb054ac707ea19b2757effedb to your computer and use it in GitHub Desktop.
Mac settings to avoid beeps with certain key bindings on Chromium-based applications like VS Code.
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
The following settings establish system-global key bindings for the key
combinations ^⌘↑, ^⌘→, ^⌘↓, and ^⌘← that are mapped to no operation ("noop").
Simply having these declared as valid keystrokes at the OS level eliminates the
system beep that occurs even when a Chromium app accepts and handles the keystroke.
In order to establish this, create or update ~/Library/KeyBindings/DefaultKeyBinding.dict
and restart any applications where you want to use these keystrokes.
Reference: https://github.com/electron/electron/issues/2617
*/
{
"@^\UF701" = "noop:";
"@^\UF702" = "noop:";
"@^\UF703" = "noop:";
"@~^\UF701" = "noop:";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment