Skip to content

Can't unbind some keys #2079

Closed
Closed

Description

@code-asher

F10 is bound to Step Over but it doesn't work because it's bound to Focus Application Menu. Rebinding Focus Application Menu just creates a new keybinding instead of changing the default so there's no way to work around this currently.

See #2070 for more details.

Activity

  1. code-asher commented on Sep 10, 2020

    @code-asher
    MemberAuthor

    I think there are others that can't be removed either, like F1 to show the command palette.

  2. tuanpham-dev commented on Sep 13, 2020

    @tuanpham-dev

    For now, to make F10 works for Step Over, you can patch file <code-server>/lib/vscode/out/vs/workbench/workbench.web.api.js, search for {primary:68 and replace with {primary:0. Here is my command to patch it:

    sudo sed -i 's/{primary:68/{primary:0/g' /usr/lib/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js
  3. WhitCrow commented on Sep 17, 2020

    @WhitCrow

    For now, to make F10 works for Step Over, you can patch file <code-server>/lib/vscode/out/vs/workbench/workbench.web.api.js, search for {primary:68 and replace with {primary:0. Here is my command to patch it:

    sudo sed -i 's/{primary:68/{primary:0/g' /usr/lib/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js

    i dont find th /lib/vscode folder

  4. tuanpham-dev commented on Sep 17, 2020

    @tuanpham-dev

    i dont find th /lib/vscode folder

    It's in code-server folder which is /usr/lib/code-server in my case.

  5. WhitCrow commented on Sep 27, 2020

    @WhitCrow

    i dont find th /lib/vscode folder

    It's in code-server folder which is /usr/lib/code-server in my case.

    Its working,Thanks

  6. StephanieHerd commented on Oct 15, 2020

    @StephanieHerd

    Is there an ETA on this bug? Thank you.

  7. code-asher commented on Oct 15, 2020

    @code-asher
    MemberAuthor
  8. StephanieHerd commented on Oct 15, 2020

    @StephanieHerd

    Thanks for the quick response. I understand I guess the temporary fixed posted above would be ok for now. Cheers.

  9. raul87011523 commented on Mar 10, 2021

    @raul87011523

    Hello, I found a solution

    • Go to File/Preferences/Keyboard Shortcuts.
    • Click on 'Open Keyboard Shortcuts (JSON)' icon.
    • Paste the next code:
    [
        {
            "key": "f10",
            "command": "-workbench.actions.menubar.focus",
            "when": "isWeb"
        },
        {
            "key": "f10",
            "command": "",
            "when": "isWeb"
        },
        {
            "key": "f10",
            "command": "extension.node-debug.startWithStopOnEntry",
            "when": "!inDebugMode && debugConfigurationType == 'node'"
        },
        {
            "key": "f10",
            "command": "workbench.action.debug.stepOver",
            "when": "debugState == 'stopped'"
        }
    
    ]
    
    • Press F5 to refresh the browser

    Example ilustrated:

    image

    image

    image

  10. added this to the Backlog milestone on Apr 29, 2021
  11. stale commented on Oct 27, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

  12. binary-person commented on Dec 27, 2021

    @binary-person

    im a year late to the party, but the issue still persists. The actual keybinding change works, but you need to refresh your browser every time you change a keybinding for changes to take effect

  13. jsjoeio commented on Jan 3, 2022

    @jsjoeio
    Contributor

    @binary-person do you mind opening up a bug report for that?

  14. binary-person commented on Jan 3, 2022

    @binary-person

    sure! #4673

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions