[PR #15137] [MERGED] Enable ctrl+shift to run terminal elevated from context menu #30453

Open
opened 2026-01-31 09:40:54 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15137
Author: @jamespack
Created: 4/7/2023
Status: ✅ Merged
Merged: 4/17/2023
Merged by: @DHowett

Base: main ← Head: shell_admin_ctrl_shift_click


📝 Commits (4)

  • cd2d978 Check for ctrl+shift to launch as admin from context menu
  • d472b55 Merge branch 'main' into shell_admin_ctrl_shift_click
  • 0008aea Check ctrl and shift key state during shell activation and run elevated if both are pressed
  • fd2a829 Update src/cascadia/ShellExtension/OpenTerminalHere.cpp

📊 Changes

2 files changed (+10 additions, -10 deletions)

View changed files

📝 src/cascadia/ShellExtension/OpenTerminalHere.cpp (+9 -9)
📝 src/cascadia/ShellExtension/OpenTerminalHere.h (+1 -1)

📄 Description

This pull request adds the requirement for the shift key to be pressed in addition to the control key.

References #14810
Implemented in #14873

This is follow up work from my last pull request that was merged that only required the control key to be pressed to launch the terminal as admin from the shell context menu. After some discussion it was decided that the shift key should be required as well as that is the norm on Windows.

Validation Steps Performed

Tested all combinations of shift+ctrl and verified that the terminal only requests elevation when a shift and control key are pressed together. The shell launches regularly if not.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15137 **Author:** [@jamespack](https://github.com/jamespack) **Created:** 4/7/2023 **Status:** ✅ Merged **Merged:** 4/17/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `shell_admin_ctrl_shift_click` --- ### 📝 Commits (4) - [`cd2d978`](https://github.com/microsoft/terminal/commit/cd2d978d6891373730075a325f1277b40129f92a) Check for ctrl+shift to launch as admin from context menu - [`d472b55`](https://github.com/microsoft/terminal/commit/d472b55716123f77ec748e35dd0491d94ed46963) Merge branch 'main' into shell_admin_ctrl_shift_click - [`0008aea`](https://github.com/microsoft/terminal/commit/0008aeadf58630ad607de9f2b123be96286a3260) Check ctrl and shift key state during shell activation and run elevated if both are pressed - [`fd2a829`](https://github.com/microsoft/terminal/commit/fd2a829906247fec56471e625bb4101e44abd922) Update src/cascadia/ShellExtension/OpenTerminalHere.cpp ### 📊 Changes **2 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/ShellExtension/OpenTerminalHere.cpp` (+9 -9) 📝 `src/cascadia/ShellExtension/OpenTerminalHere.h` (+1 -1) </details> ### 📄 Description This pull request adds the requirement for the shift key to be pressed in addition to the control key. References #14810 Implemented in #14873 This is follow up work from my last pull request that was merged that only required the control key to be pressed to launch the terminal as admin from the shell context menu. After some discussion it was decided that the shift key should be required as well as that is the norm on Windows. ## Validation Steps Performed Tested all combinations of shift+ctrl and verified that the terminal only requests elevation when a shift and control key are pressed together. The shell launches regularly if not. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:40:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30453