Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor keys not working in popups #785

Closed
ThatRendle opened this issue Sep 19, 2016 · 2 comments
Closed

Cursor keys not working in popups #785

ThatRendle opened this issue Sep 19, 2016 · 2 comments

Comments

@ThatRendle
Copy link
Contributor

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

With C# and Vim extensions active, when pressing Ctrl+. to bring up the context-sensitive actions menu, use the cursor keys to move the selection up and down.

What did you expect to happen?

Cursor keys should move the selection in the Actions context menu.

What happened instead?

The cursor in the underlying editor is moved. I have to use the mouse to select from the context menu.

Technical details:

  • VSCode Version: 1.5.2
  • VsCodeVim Version: Current
  • OS: Reproducible on Ubuntu 16.04 and Windows 7.
@ThatRendle
Copy link
Contributor Author

There's a suggestWidgetVisible variable you can test in keyboard bindings:

{
  "key": "up",
  "command": "extension.vim_up",
  "when": "editorTextFocus && vim.mode != 'Insert Mode' && !suggestWidgetVisible" 
},
{
  "key": "down",
  "command": "extension.vim_down",
  "when": "editorTextFocus && vim.mode != 'Insert Mode' && !suggestWidgetVisible"
}

@rebornix
Copy link
Member

@markrendle thanks for the issue report and even the fix suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants