Skip to content

Fixes #44396 - cancel alt up after mouse down on menu - #44397

Merged
Isidor Nikolic (isidorn) merged 1 commit into
microsoft:masterfrom
eamodio:fixes-44396
May 9, 2018
Merged

Isidor Nikolic (isidorn) merged 1 commit into
microsoft:masterfrom
eamodio:fixes-44396

Conversation

@eamodio

Copy link
Copy Markdown
Contributor

Fixes #44396

@bpasero

Copy link
Copy Markdown
Contributor

Isidor Nikolic (@isidorn) not sure if you or Joh, but I remember you were in this code for Alt support in menus.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Eric Amodio (@eamodio) Why is this logic only needed in one place and not in the other?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Johannes Rieken (@jrieken) I'm not sure I'm following — which other place? Do you mean in ContextAwareMenuItemActionItem? If so it might need to be there too, but I can't get any alt stuff to work with any context menus — if you hold alt and try to open a context menu it opens and quickly disappears, and if you hit alt while a context menu is open it just disappears too.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We have two references in the same file... But then I haven't been in this code for long. Isidor Nikolic (@isidorn) I leave the review to you.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isidor Nikolic (@isidorn) unrelated, related but using @memoize is risky because I am pretty sure it memoizes without looking at the arguments and I am not sure there is only one contextMenuService around (i might be mistaken...)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Johannes Rieken (@jrieken) yes it ignores the arguments. Thanks for letting me know, will try to fix.

@jrieken Johannes Rieken (jrieken) removed their assignment Mar 26, 2018
@isidorn

Copy link
Copy Markdown

This week we are in endgame and on thursday I go on vacation -> pushing to next milestone when I will have time to review.

@eamodio

Copy link
Copy Markdown
Contributor Author

Isidor Nikolic (@isidorn) let me know if you need anything else on this.

@isidorn

Copy link
Copy Markdown

Eric Amodio (@eamodio) sorry for the slow response I came back from vacation a couple of days ago. Thus pushing this to may.

I also see conficlits with the master. Can you please resolve those conflicts so I can review this some time next week. Thanks

@eamodio

Copy link
Copy Markdown
Contributor Author

Isidor Nikolic (@isidorn) no worries, sorry for the delay in re-syncing this 😄

@isidorn

Copy link
Copy Markdown

Eric Amodio (@eamodio) I tried this out and it works expected. I will just add some comments since this is a workaround so we remember what it was for.
Merging it in, thanks 🍺

@isidorn
Isidor Nikolic (isidorn) merged commit 6f56ff3 into microsoft:master May 9, 2018
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alt+Click on a toolbar button causes the Menu Bar to toggle on KeyUp

4 participants