[Feature] PowerToys hotkey conflict detection - #40457
Conversation
f8aaf53 to
9a975cb
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1f25860 to
6642c80
Compare
There was a problem hiding this comment.
Pull Request Overview
This pull request implements a comprehensive hotkey conflict detection and resolution system for PowerToys, providing real-time conflict checking and centralized management interface. It adds conflict detection capabilities to all PowerToys modules with hotkey configurations and creates a unified interface for resolving conflicts.
The key changes include:
- Implementation of
PageViewModelBaseto provide shared hotkey conflict detection functionality - Migration of all module ViewModels to inherit from
PageViewModelBase - Addition of conflict status properties and tooltips to shortcut controls across all modules
Reviewed Changes
Copilot reviewed 154 out of 163 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
src/settings-ui/Settings.UI/ViewModels/PageViewModelBase.cs |
New base class providing shared hotkey conflict detection functionality |
src/settings-ui/Settings.UI/ViewModels/ShortcutConflictViewModel.cs |
New ViewModel for centralized conflict resolution dialog |
src/settings-ui/Settings.UI/ViewModels/ZoomItViewModel.cs |
Migrated to PageViewModelBase with conflict detection support |
src/settings-ui/Settings.UI/ViewModels/WorkspacesViewModel.cs |
Migrated to PageViewModelBase with conflict detection support |
src/settings-ui/Settings.UI/ViewModels/ShortcutGuideViewModel.cs |
Migrated to PageViewModelBase with conflict detection support |
src/settings-ui/Settings.UI/ViewModels/PowerOcrViewModel.cs |
Migrated to PageViewModelBase with conflict detection support |
src/settings-ui/Settings.UI/ViewModels/PowerLauncherViewModel.cs |
Migrated to PageViewModelBase with conflict detection support |
src/settings-ui/Settings.UI/ViewModels/PeekViewModel.cs |
Migrated to PageViewModelBase with conflict detection support |
| Various module ViewModels | Similar migration patterns with conflict detection properties |
| Various XAML files | Updated to include conflict status bindings for shortcut controls |
Files not reviewed (1)
- src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.WindowWalker/Properties/Resources.Designer.cs: Language not supported
Comments suppressed due to low confidence (1)
src/settings-ui/Settings.UI/ViewModels/PowerLauncherViewModel.cs:204
- Commented out constructor appears to be dead code and should be removed rather than commented out.
)
yeelam-gordon
left a comment
There was a problem hiding this comment.
I just take a look at all the dllmain only.
Will take a look others later on.
ade6b30 to
27bb346
Compare
There was a problem hiding this comment.
check-spelling found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
yeelam-gordon
left a comment
There was a problem hiding this comment.
Finished take a look at runner folder
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Added navigation to hotkey conflict detection dialog card. Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: Shuai Yuan <shuai.yuan.zju@gmail.com>
e820cab to
0e31424
Compare
|
Cherry-picked the code to another PR and resolved the conflicts. Closing this PR. |
Summary of the Pull Request
Closed this PR due to heavy rebase conflicts. The main changes have been cherry-picked into a new PR: #41029