-
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
Alt-Space suppressed when Settings is the only tab #14397
Comments
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Oh, I meant #11970. I'm sorry. |
Curious that it still repros for you... |
is apparently doing a lot of work in this post |
Oh I see. THIS IS WEIRD. If an element in the SUI has focus, then this doesn't repro. Actually, this doesn't repro if any element has focus. But in the specific case where you open the SUI, then close a terminal tab, then the focus is somewhere where alt+space isn't hooked up. |
This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes. |
I also have a default profile open when I press alt+space after closing the tab and click on the titlebar. |
for keyboard folks tabbing focus to anything on the page makes that key combo work |
Default to XamlRoot when unable to find a focused object in DirectKeyEvents This may not be the most appropriate "fix" for this. Certainly open to criticism and feedback. We are trapping the alt+space key chord on the win32 side and forwarding it to the xaml side. There we try to find a focused object by walking the xaml tree. If we are unable to find a focused object we return false and do nothing. I suspect that the area that has focus that prevents this from working normally is on the win32 side. Since we want to handle the system menu anyway and are explicitly trapping that key combo and forwarding it on I thought this was the best approach. If we cant find a focused object default to the xaml root. ## Validation Steps Performed System menu opens as it should. Closes #14397
Default to XamlRoot when unable to find a focused object in DirectKeyEvents This may not be the most appropriate "fix" for this. Certainly open to criticism and feedback. We are trapping the alt+space key chord on the win32 side and forwarding it to the xaml side. There we try to find a focused object by walking the xaml tree. If we are unable to find a focused object we return false and do nothing. I suspect that the area that has focus that prevents this from working normally is on the win32 side. Since we want to handle the system menu anyway and are explicitly trapping that key combo and forwarding it on I thought this was the best approach. If we cant find a focused object default to the xaml root. System menu opens as it should. Closes #14397 (cherry picked from commit 210414e) Service-Card-Id: 89001997 Service-Version: 1.17
Windows Terminal version
1.15.2875.0
Windows build number
22621.819
Other Software
No response
Steps to reproduce
Open settings and close all other tabs.
Close and reopen terminal (now settings should be the only tab)
Type Alt-Space
Expected Behavior
The alt-space menu, which includes eg Close
Actual Behavior
Nothing. When settings is the only tab on startup, alt-space seems to be ignored.
This is a fairly minor bug, except it's the quickest way to close the settings and terminal with the keyboard. The only other way I know is Alt-F4. And of cousre, the menu is useful for other things like moving with the keyboard.
When settings is not the only tab open, alt-space seems to (mostly?) work. And it works on other tabs.
The text was updated successfully, but these errors were encountered: