Skip to content

Feature Request: Use Up/Down Arrow Key To Move Focus In Hover Action Bar #130562

Closed

Description

image

Currently you can use Tab/Shift+Tab to move the focus. However, this only works if tab is not bound otherwise (e.g. to "Accept Inline Suggestion"). In this case, you have to enable "Tab moves focus" - but then you have to disable it again when you want to use Tab to accept inline suggestions or to indent code.

It would be nice if you could also use the arrow keys to move the focus to the next/previous button in the hover action bar.

(Idea from Isidor Nikolic (@isidorn))

Activity

  1. added
    polish
    workbench-hover
    on Aug 11, 2021
  2. added this to the Backlog milestone on Aug 11, 2021
  3. Tyriar commented on Jan 31, 2023

    @Tyriar
    Contributor

    Henning Dieterichs (@hediet) your inline suggest keybinding could just use !editorHoverVisible?

  4. hediet commented on Feb 2, 2023

    @hediet
    MemberAuthor

    Then it would still insert \t into the editor.

  5. Tyriar commented on Feb 2, 2023

    @Tyriar
    Contributor

    Tab insertion requires editorTextFocus though which should be false when the hover is focused?

    { "key": "tab",                   "command": "tab",
                                         "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus" },
    
  6. added
    editor-hover
    and removed
    workbench-hover
    on Dec 4, 2024
  7. aiday-mar commented on Dec 17, 2024

    @aiday-mar
    Collaborator

    That is correct, when the hover is focused, editorTextFocus will be false, so you could use the context key editorHoverVisible.

  8. aiday-mar commented on Dec 17, 2024

    @aiday-mar
    Collaborator

    The Up and Down arrows are currently reserved for scrolling with the horizontal and vertical scrollbars on editor hover resize.

  9. Tyriar commented on Dec 19, 2024

    @Tyriar
    Contributor

    Tab and shift+tab work fine for me without tab focus mode. Since up and down already have jobs according to Aiday Marlen Kyzy (@aiday-mar) I don't think there's anything to do here.

    In this case, you have to enable "Tab moves focus" - but then you have to disable it again when you want to use Tab to accept inline suggestions or to indent code.

    Since I can't repro, maybe this is a custom keybinding conflict?

  10. locked and limited conversation to collaborators on Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-hoverpolish

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions