Vscode: Add a setting to disable mnemonics in the menu so that Alt+F can be bound

Created on 31 Dec 2016  路  10Comments  路  Source: microsoft/vscode

  • VSCode Version:
    Version 1.8.1
    Commit ee428b0eead68bf0fb99ab5fdc4439be227b6281
    Date 2016-12-19T14:41:20.664Z
    Shell 1.4.6
    Renderer 53.0.2785.143
    Node 6.5.0
  • OS Version:
    ubuntu 14.04LTS
    Steps to Reproduce:
  1. Install plugin "Emacs"
  2. Press Alt+f and find the "File" menu is triggered. (expect: Alt+F Move cursor to previous word)

It contains

{ "key": "alt+f",                 "command": "emacs.cursorWordRight",
                                     "when": "editorTextFocus" },

in keybinding.json

I think it's not the plugin's problem. Any advice?

feature-request verified

Most helpful comment

Will be available for our June release.

All 10 comments

@blackmiaool if Code works without this extension, I'll suggest to start investigation from that extension :)

@rebornix I tried to disable the plugin and edited config file like this:
// Place your key bindings in this file to overwrite the defaults

[
    {
        "key": "alt+f",
        "command": "cursorWordStartLeft",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+b",
        "command": "cursorWordStartLeft",
        "when": "editorTextFocus"
    }
]

Then I restarted the vscode and tried them.
I found that the alt+b worked well, and the alt+f triggered the menu "File".

alt+f is a system keybinding for File Menu I'm afraid.

@alexandrudima do we support overriding the alt menu shortcuts?

@jaseonline I'm just asking the feature owner what the expected behavior is.

It appears it is not possible to bind anything to alt+f on Ubuntu because it does not reach the renderer process, the reason being that the File menu uses F as a mnemonic.

@bpasero can decide if he wants to make menu mnemonics configurable in any way to allow for alt+f to reach the renderer process.

https://github.com/Microsoft/vscode/blob/master/src/vs/code/electron-main/menus.ts#L298

Any idea when/if this setting will be merged?

Will be available for our June release.

@bpasero 1.13 is released. Does it contain this feature? How can we achieve it now? I tried the emacs plugin , it still doesn't work (alt-f triggers file menu).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v-pavanp picture v-pavanp  路  3Comments

curtw picture curtw  路  3Comments

vsccarl picture vsccarl  路  3Comments

chrisdias picture chrisdias  路  3Comments

shanalikhan picture shanalikhan  路  3Comments