-
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
[Settings] : System menu pop-up doesn't open inside 'Settings' window, when user press 'Alt + Space' key. #11970
Comments
Huh. Sure doesn't. Probably should. I'm guessing there's some magic reason that Alt+Space isn't delivered to the SUI, which is causing us to never raise a |
Note to selves: it just generally doesn't work from the command palette either. Why does it need to go through a Or read-only panes. weird. |
So the reason this doesn't work in the settings UI is because This method iterates through the UI tree and passes the key event through to Hitting I've been looking at this for a while now, and can't come up with a nice way of refactoring the code so that hitting terminal/src/cascadia/TerminalControl/TermControl.cpp Lines 963 to 988 in 210a98e
Oddly, the "Open system menu" action does work if you click it from within the command palette - it just doesn't work if you press the enter key with it highlighted. In both cases the action does fire, and |
Originally filed in MSFT-41390832 |
This pull request operates on the same theory as #14217, but at a lower level. Carlos and I discovered that TerminalPage *already* has an action-dispatching key preview handler, and that my implementation of IDirectKeyListener handles focus-tree bubbling mostly correctly. Because of that discovery, we could move the IDirectKeyListener into TerminalPage itself and not have to complicate the SUI or the Command Palette with the DirectKey interface. Validation: When bound to Alt+Space, the system menu works in the command palette, the settings UI, and in read-only panes. Fixes #11970 Closes #14217 Fixes MSFT-41390832
This pull request operates on the same theory as #14217, but at a lower level. Carlos and I discovered that TerminalPage *already* has an action-dispatching key preview handler, and that my implementation of `IDirectKeyListener` handles focus-tree bubbling mostly correctly. Because of that discovery, we learned we could move the `IDirectKeyListener` into TerminalPage itself and not have to complicate the SUI or the Command Palette with the DirectKey interface. Validation: When bound to Alt+Space, the system menu works in the command palette, the settings UI, and in read-only panes. Fixes #11970 Closes #14217 Fixes MSFT-41390832
This pull request operates on the same theory as #14217, but at a lower level. Carlos and I discovered that TerminalPage *already* has an action-dispatching key preview handler, and that my implementation of `IDirectKeyListener` handles focus-tree bubbling mostly correctly. Because of that discovery, we learned we could move the `IDirectKeyListener` into TerminalPage itself and not have to complicate the SUI or the Command Palette with the DirectKey interface. Validation: When bound to Alt+Space, the system menu works in the command palette, the settings UI, and in read-only panes. Fixes #11970 Closes #14217 Fixes MSFT-41390832 (cherry picked from commit d319d47) Service-Card-Id: 86228469 Service-Version: 1.15
This pull request operates on the same theory as #14217, but at a lower level. Carlos and I discovered that TerminalPage *already* has an action-dispatching key preview handler, and that my implementation of `IDirectKeyListener` handles focus-tree bubbling mostly correctly. Because of that discovery, we learned we could move the `IDirectKeyListener` into TerminalPage itself and not have to complicate the SUI or the Command Palette with the DirectKey interface. Validation: When bound to Alt+Space, the system menu works in the command palette, the settings UI, and in read-only panes. Fixes #11970 Closes #14217 Fixes MSFT-41390832 (cherry picked from commit d319d47) Service-Card-Id: 86228470 Service-Version: 1.16
🎉This issue was addressed in #14221, which has now been successfully released as Handy links: |
Closing the bug as issue is fixed on the latest build: |
🎉This issue was addressed in #14221, which has now been successfully released as Handy links: |
Windows Terminal version
1.12.3472.0
Windows build number
22509.1011
Other Software
**Test Environment: **
OS: Windows 11 Version Dev (OS Build 22509.1011)
App: Windows Terminal Preview
Steps to reproduce
**Repro Steps: **
1.Open Windows Terminal.
2.Open Settings page using 'Ctr+,'
3.Now try to open the 'System menu' pop-up by pressing 'Alt + Space' key.
4.Observe the issue.
**User Experience: **
Users will not be able to 'System menu' pop-up functionalities in 'Settings' window, if System menu pop-up doesn't open inside 'Settings' window on pressing 'Alt + Space' key.
Attachment :
System menu pop-up doesn't open inside 'Settings' window, when user press 'Alt + Space' key..zip
Expected Behavior
System menu pop-up should open inside 'Settings' window, when user press 'Alt + Space' key.
Actual Behavior
System menu pop-up doesn't open inside 'Settings' window, when user press 'Alt + Space' key.
The text was updated successfully, but these errors were encountered: