adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

[1.9] Warning beep on alt+w pane swap. #13218

Open dmxt opened 7 years ago

dmxt commented 7 years ago

Steps to Reproduce

  1. Open files on two panes. Vertical panes in this case.
  2. Attempt to press alt+w to swap panes.

I have a warning noise beep every time I press alt+w which is deemed as very annoying that would stop me from using it.

Expected behavior: No sound effect per pressing alt+w to swap pane.

Actual behavior: Warning sound beeps per pressing alt+w to swap pane.

Versions

Brackets 1.9 build 1.9.0-17312 (release 189f6d39a) build timestamp: Tue Mar 21 2017 10:29:45 GMT+0000

Windows 8 64-bit

haslam22 commented 7 years ago

Not sure why this is happening, might be because Windows by default maps alt+letter shortcuts to the menu bar, so if you type alt+f, it opens the file menu etc. You could try overriding the pane swap shortcut to a different one in keymap.json which can be opened using Debug > Open User Key Map:

{
    "documentation": "https://github.com/adobe/brackets/wiki/User-Key-Bindings",
    "overrides": {
        "<desired key>" : "cmd.switchPaneFocus"
    }
}
dmxt commented 7 years ago

@haslam22 Is alt+w the only default keymap for pane swap?

haslam22 commented 7 years ago

@dmxt It appears so, the feature was added pretty recently in #12853