Skip to content

terminal focus key binding is not working correctly after update to 1.5 #11714

Closed

Description

@prisar
  • VSCode Version: 1.5
  • OS Version: windows 10

Steps to Reproduce:
1.
2.

Activity

  1. ramya-rao-a commented on Sep 8, 2016

    @ramya-rao-a
    Contributor

    pritimay Do you mean the terminal focus ley binding was working for you in 1.4 but is not working after update to 1.5 ?

  2. added
    terminal
    on Sep 8, 2016
  3. prisar commented on Sep 8, 2016

    @prisar
    Author

    Yeah, just after update from 1.4 to 1.5 it is not working

  4. changed the title [-]terminal focus key binding is not working correctly update[/-] [+]terminal focus key binding is not working correctly after update to 1.5[/+] on Sep 8, 2016
  5. Tyriar commented on Sep 8, 2016

    @Tyriar
    Contributor

    pritimay Can you paste in your settings.json and keybindings.json?

  6. added
    info-needed
    on Sep 8, 2016
  7. apbendi commented on Sep 9, 2016

    @apbendi

    I'm seeing the same problem. Below is keybindings.json. My settings.json is empty.

    // Place your key bindings in this file to overwrite the defaults
    [{
        "key": "cmd+`",
        "command": "workbench.action.terminal.focus",
        "when": "editorTextFocus"
    }]
  8. apbendi commented on Sep 9, 2016

    @apbendi

    (also, if there is an easier way to toggle between the terminal and the editor without a custom keyboard, I'd love to know it! just started trying out VSCode earlier this week, so apologize if thats a dumb question!)

  9. prisar commented on Sep 9, 2016

    @prisar
    Author

    Daniel Imms (@Tyriar) This are my user settings.json and keybindings.json

    {
    "terminal.integrated.cursorBlinking": true,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 1000,
    "window.restoreFullscreen": true
    }

    [
    {
    "key": "ctrl+q",
    "command": "workbench.action.terminal.focus",
    "when": "!terminalFocus"
    },

    {
    "key": "ctrl+shift+x",
    "command": "extension.partialDiff.markSection1",
    "when": "editorTextFocus"
    },
    {
    "key": "ctrl+d",
    "command": "extension.partialDiff.markSection2AndTakeDiff",
    "when": "editorTextFocus"
    }
    ]

    workbench.action.terminal.focus is working only after killing the terminal.

  10. hashhar commented on Sep 9, 2016

    @hashhar
    Contributor

    Can confirm the same issue. I tried this on a clean install. Both settings.json and keybindings.json are empty.

  11. oblin commented on Sep 9, 2016

    @oblin

    Comfirm this issue, too.
    try this simple setting which works in 1.4, but not 1.5.1:

    { "key": "ctrl+alt+t", "command": "workbench.action.terminal.focus"}

  12. ivarref commented on Sep 9, 2016

    @ivarref

    You can also reproduce this issue with: ctrl-shift-p and select Terminal: Focus Terminal
    My keybindings.json is an empty array.
    VS Code then won't focus the terminal in 1.5.1.

    Ben DiFrancesco (@apbendi) It's not a dumb question. I think it would be an excellent feature to easily toggle between terminal and editor without a custom keyboard shortcut. I don't know of a way at present moment.

  13. 3 remaining items

  14. added
    bug
    important
    candidate
    and removed
    info-needed
    on Sep 9, 2016
  15. prisar commented on Sep 9, 2016

    @prisar
    Author

    Thanks Daniel Imms (@Tyriar) really needed it

  16. Tyriar commented on Sep 9, 2016

    @Tyriar
    Contributor

    Also I love your setup Ivar Refsdal (@ivarref), I might have to steal it once the fix lands 😄

  17. added a commit that references this issue on Sep 9, 2016
    ecd239c
  18. removed
    candidate
    on Sep 9, 2016
  19. added
    verified
    on Sep 12, 2016
  20. roblourens commented on Sep 12, 2016

    @roblourens
    Member

    I like that toggle setup too. You can always collapse the bottom pane with cmd+j so you don't even need to replace the toggleTerminal binding to hide it.

  21. Tyriar commented on Sep 12, 2016

    @Tyriar
    Contributor

    Added it to my settings with a small tweak:

    { "key": "ctrl+`",          "command": "workbench.action.terminal.focus",
                                "when": "!terminalFocus" },
    { "key": "ctrl+`",          "command": "workbench.action.focusFirstEditorGroup",
                                "when": "terminalFocus" }

    I created #11897 requesting to add a command that focuses the most recently used editor group so it feels better.

  22. Tyriar commented on Sep 13, 2016

    @Tyriar
    Contributor

    roblourens Ivar Refsdal (@ivarref) workbench.action.focusActiveEditorGroup is a thing now (#11904), so you can use this to reliably focus the most recently used file/editor:

    { "key": "ctrl+`",          "command": "workbench.action.terminal.focus",
                                "when": "!terminalFocus" },
    { "key": "ctrl+`",          "command": "workbench.action.focusActiveEditorGroup",
                                "when": "terminalFocus" }
  23. locked and limited conversation to collaborators on Nov 18, 2017
  24. added a commit that references this issue on Sep 6, 2026
    aa8c545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugimportantterminalverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions