-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
When the titlebar is clicked, dismiss the new tab flyout #2438
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug still happens when "showTabsInTitlebar": true
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
Close the tab context menu when clicking on the title bar ## Detailed Description of the Pull Request / Additional comments Following #2438, hide the tabs context menu on `TerminalPage::TitlebarClicked()`. We don't know which of the tabs is showing the context menu, do it on all tabs. ## Validation Steps Performed Open the context menu from any tab, click on title bar and see the context menu disappear. Closes #7988
Close the tab context menu when clicking on the title bar ## Detailed Description of the Pull Request / Additional comments Following #2438, hide the tabs context menu on `TerminalPage::TitlebarClicked()`. We don't know which of the tabs is showing the context menu, do it on all tabs. ## Validation Steps Performed Open the context menu from any tab, click on title bar and see the context menu disappear. Closes #7988 (cherry picked from commit 7e86001)
Summary of the Pull Request
App
to indicate to the app that the titlebar has been clicked. We'll use this method toHide
the flyout.NonClientIslandWindow
, treat the titlebar asHTNOWHERE
, so we get clicks in that area.NonClientIslandWindow
, raise an event when the titlebar area is clicked. Also do the normalHTCAPTION
thing we were doing before.AppHost
, when it handles the event fromNonClientIslandWindow
, it'll call the method onApp
to close the flyout.PR Checklist