Repository navigation
Closed
Labels
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssues pertaining to the user interface of the Console or TerminalHelp WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.In-PRThis issue has a related PRThis issue has a related PRIssue-TaskIt's a feature request, but it doesn't really need a major design.It's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.The new Windows Terminal.good first issueThis is a fix that might be easier for someone to do as a first contributionThis is a fix that might be easier for someone to do as a first contribution
Milestone
Description
Description of the new feature/enhancement
Today, there is no way to launch an elevated Terminal profile end-to-end without the need to use a keyboard.
Even without a physical keyboard, the user flow is still the same with a on-screen keyboard:
- Launch Terminal
- Ctrl + Click the profile you want to open
This Feature Request proposes a way for a user to open an elevated Terminal profile without the need to use a keyboard.
This is a very common Accessibility scenario.
The user should be able to launch an elevated Terminal profile with just a touch screen and / or mouse.
For more details see: https://twitter.com/SBarizien/status/1599769771666391042
Reacted by Stéphane BARIZIEN
Metadata
Metadata
Assignees
Labels
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssues pertaining to the user interface of the Console or TerminalHelp WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.In-PRThis issue has a related PRThis issue has a related PRIssue-TaskIt's a feature request, but it doesn't really need a major design.It's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.The new Windows Terminal.good first issueThis is a fix that might be easier for someone to do as a first contributionThis is a fix that might be easier for someone to do as a first contribution
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]Open elevated Terminal profile without a keyboard[/-][+]Launch elevated Terminal profile without a keyboard[/+]zadjii-msft commentedon Dec 9, 2022
Were there any suggestions for how to do that?
The only thing I could think of was some default nested actions for opening a new elevated profile in the Command Palette. Trick here is the wording - we don't want to open a new window always, but we'll need to if the terminal isn't already elevated.
Maybe just "Open Elevated > {profiles}"?
237dmitry commentedon Dec 9, 2022
As a workaround you can elevate current profile or execute command in elevated state with gsudo via UAC confirmation.
DHowett commentedon Dec 9, 2022
Mike Griese (@zadjii-msft) I thought of this, which is everyone's favorite UI:
It's a right-click menu item with a right-click menu. It also works with touch (touch-hold-release!)
DHowett commentedon Dec 9, 2022
If we did that, we could also put the splits in it...!
zadjii-msft commentedon Dec 9, 2022
can we add right click context menus to menu flyouts?
DHowett commentedon Dec 9, 2022
I gave it a shot in XAML Studio!
zadjii-msft commentedon Dec 9, 2022
Damn, yea let's do that. ez.
10 remaining items
michalnpl commentedon Apr 21, 2023
Sure Mike Griese (@zadjii-msft) here is the branch
Don't forget to regenerate resources (added items to .resw).
Interestingly Shift+F10 (shortcut to invoke context menu) opens the context menu in the right place while right-clicking on the item opens it completely misaligned.
zadjii-msft commentedon May 17, 2023
michalnpl Sorry this got lost in my list of open tabs 😅
I'm betting that it's something with
Like, I'd hope that works. But I'd bet that XAML islands does something weird with flyouts like that. I know there were issues with DPI scaling of mouse events in XAML islands before, so I wouldn't be surprised here.
This might be a crazy idea, but I bet you could just manually ask XAML to show the flyout at the cursor position. Something like:
terminal/src/cascadia/TerminalControl/TermControl.cpp
Lines 3386 to 3404 in ce60bf2
but instead of a "control-relative position", use
CoreWindow::GetForCurrentThread().PointerPosition(). That's my thought at least.michalnpl commentedon May 25, 2023
Mike Griese (@zadjii-msft) No worries. I thought about it but abandoned the idea because it seems like this should be handled correctly by XAML, and I am also afraid I'll miss some edge cases, or it will not be future-proof if I handle it manually. The proposed code seems to be doing the correct thing but the framework is acting unexpectedly. Perhaps there is a way to have the XAML team look at this?
jamespack commentedon Jul 8, 2023
I may take a stab at this if nobody is working it.
jamespack commentedon Jul 8, 2023
Which alignment do we want? I can show screenshots of all of them if you'd want to see them all
jamespack commentedon Jul 8, 2023
I kinda like this one.
jamespack commentedon Jul 8, 2023
Do we have a preference on which Icon we use for the LUA shield?

jamespack commentedon Jul 8, 2023
Or this guy?
Add support for running profiles from Add tab menu as admin without a…
Add support for running profiles from Add tab menu as admin without a…