Closed twitu closed 5 years ago
Similarly Alt+S opens the select tab and moves the cursor down
Thanks for your feedback. I just installed VS Code 1.28 on a fresh Ubuntu (18.04) installation with only the WASDMap extension installed. Unfortunately, I'm not able to reproduce either of these issues.
Just so I'm clear, you're talking about the Debug and Selection menus in the menu bar opening when you hit Alt+D or Alt+S, respectively? I know those keys are mapped to the default keyboard mnemonics for those menus, but in my testing on both Windows and Linux versions of VS Code, I've always noticed that the keymap extension intercepts the key input before the editor window's menu bar gets a chance to handle it.
The only couple of things I can think of that may be causing this are the following:
You're triggering the keybinding from a part of the editor that doesn't have text input focus. In general the cursor navigation keybindings only respond when the editor's textInputFocus
state is true. If my focus is in some list view (like the list of Extensions in the sidebar), then hitting, e.g., Alt+D does open the Debug menu (which is fine, since WASDMap doesn't try to handle those non-text contexts as of today).
There's a conflicting extension, keybinding, or setting that's affecting how WASDMap works. If you're comfortable sending me a list of any extensions or custom settings you might have enabled (either in this issue or in a gist), that could possibly help me debug this further on my end. The easiest way to get the list of extensions in a usable format would be running code --list-extensions
on the command line.
As a sanity check, you can also open up Preferences: Open Keyboard Shortcuts
and then search for one the keybindings, say Alt+D
. For this binding there should be an entry whose command
and when
values are respectively cursorRight
and textInputFocus
. You can also right click on it and select Show Same Keybindings
to see if there are any conflicts.
As a possible workaround, you could try disabling the Window: Enable Menu Bar Mnemonics
setting in the Preferences: Open Settings
window.
I will post the results here after trying out your suggestions.
I am using Alt+D and then Alt+S in the text editor. The following GIF shows what is happening
These are my extensions. jack language and verilog extensions are for syntax highlighting while cpp and python are the most common extensions for the respective languages.
amadeann.jack-language-syntax-highlighting
ms-python.python
ms-vscode.cpptools
mshr-h.veriloghdl
mvromer.wasdmap
the keyboard binding is configured properly with no similar bindings.
{ "key": "alt+d", "command": "cursorRight", "when": "textInputFocus" },
disabling Window: Enable Menu Bar Mnemonics
fixes the issue
Thanks for the help.
I am on Ubuntu 16.04 with visual studio code version 1.28. Alt+D opens debug tab in the toolbar at the top of the screen and moves the cursor to the left.