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

allow a user to change default keybindings #6880

Merged
merged 2 commits into from
Jan 17, 2020

Conversation

akosyakov
Copy link
Member

What it does

How to test

  • change some editor default keybinding, like rename symbol
  • check that default keybinding does not work anymore

Review checklist

Reminder for reviewers

@akosyakov akosyakov added keybindings issues related to keybindings monaco issues related to monaco labels Jan 14, 2020
@akosyakov akosyakov force-pushed the akosyakov/not-possible-to-change-6878 branch from 754ee2f to 1a4ba8c Compare January 14, 2020 06:42
Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested with "Toggle Line Comment" and "Indent Line". I confirm that the default keybinding does not work anymore after changing it in the Keyboard Shortcuts editor. But the new keybinding does not work either:

  • the old keybinding is still shown in the shortcuts editor
  • the old keybinding is still shown in the Quick Open dialog
  • pressing the new keybinding does nothing

@akosyakov akosyakov force-pushed the akosyakov/not-possible-to-change-6878 branch from 1a4ba8c to ea5fd09 Compare January 15, 2020 03:51
@akosyakov
Copy link
Member Author

@spoenemann could you try again please? I've addressed your issues.

@akosyakov akosyakov force-pushed the akosyakov/not-possible-to-change-6878 branch 2 times, most recently from 1bdfcf8 to ab9654b Compare January 15, 2020 09:23
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that with this change, commands without keybindings are incorrectly displayed in the table (the keybinding decoration is visible without any keys):

Master

Screen Shot 2020-01-15 at 8 26 31 AM

PR

Screen Shot 2020-01-15 at 8 26 26 AM

to display proper keybinding in the quick command palette

Signed-off-by: Anton Kosyakov <[email protected]>
@akosyakov akosyakov force-pushed the akosyakov/not-possible-to-change-6878 branch from ab9654b to 47ac870 Compare January 16, 2020 03:25
@akosyakov
Copy link
Member Author

@vince-fugnitto It should be fixed.

@akosyakov
Copy link
Member Author

@vince-fugnitto Did it work for you now?

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works great thanks!

@akosyakov akosyakov merged commit 6f16516 into master Jan 17, 2020
@akosyakov akosyakov deleted the akosyakov/not-possible-to-change-6878 branch January 17, 2020 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keybindings issues related to keybindings monaco issues related to monaco
Projects
None yet
Development

Successfully merging this pull request may close these issues.

not possible to change Monaco keybindings
3 participants