[KBM] Simultaneous shortcut invocation in Keyboard Manager#32125
[KBM] Simultaneous shortcut invocation in Keyboard Manager#32125gokcekantarci wants to merge 16 commits intomicrosoft:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…sly-Used-Shortcuts
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…m/gokcekantarci/PowerToys into KBM-Simultaneously-Used-Shortcuts
|
|
@gokcekantarci @stefansjfw Was is blocking this from being merged? Anything I could help out with? Am dying to use this 😄 |
This comment has been minimized.
This comment has been minimized.
|
Hello! What is the status on this PR? Really looking to use this feature :) |
|
Looking forward to this and #32534 to be merged. |
jaimecbernardo
left a comment
There was a problem hiding this comment.
Gokce is no longer contributing to PowerToys. At the time of developing this code, it created unintended issues.
My review is that it added too much code and added special cases which made the code harder to maintain and created the additional issues. It seems to create many more paths in the code than should be needed to fix this issue. My advise here is to scratch this one and give it another try on a more recent state of the code.
Summary of the Pull Request
Simultaneous shortcut invoke operations are allowed.
Note: This branch opened from #31923 to avoid code conflicts.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Some unit tests have been changed according to the changes made.
ShortcutDisable_ShouldNotDisableShortcutSuperset_AfterShortcutWasDisabled
ShortcutDisable_ShouldResetIsOriginalActionKeyPressed_OnPressingAnotherKey
Validation Steps Performed
The following 3 shortcuts were used while testing:
While testing, all combinations of these shortcuts were tried:
While testing, the keys were tested with different press, keep pressed and release states:
It was tested by making the following assignments to the shortcuts:
Win (Left) + E -> Disable
Win (Left) + S -> Disable
Win (Left) + V -> Disable
Win (Left) + E -> A
Win (Left) + S -> B
Win (Left) + V -> C
Win (Left) + E -> Ctrl (Left) + A
Win (Left) + S -> Ctrl (Left) + V
Win (Left) + V -> Ctrl (Left) + C
Win (Left) + E -> Send Text (qwe)
Win (Left) + S -> Send Text (asd)
Win (Left) + V -> Send Text (zxc)
Win (Left) + E -> Run Program (calculator.exe)
Win (Left) + S -> Run Program (notepad++.exe)
Win (Left) + V -> Run Program (chrome.exe)
Win (Left) + E -> Open URI (https://www.google.com/)
Win (Left) + S -> Open URI (https://github.com/microsoft/PowerToys)
Win (Left) + V -> Open URI (https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)
It is also tested with common modifier and action keys:
Set shortcuts as below and test shortcuts together
Ctrl (Left) + A -> Q
Shift (Left) + A -> W
Alt (Left) + A -> E
Ctrl (Left) + Shift (Left) + A -> T
Ctrl (Left) + Alt (Left) + A -> Y
Shift (Left) + Alt (Left) + A -> U
Ctrl (Left) + Shift (Left) + Alt (Left) + A -> J
Please test with Alt gr too.
Altgr (Ctrl Left + Alt Right) + E
Altgr (Ctrl Left + Alt Right) + S
Altgr (Ctrl Left + Alt Right) + V
Altgr (Ctrl Left + Alt Right) + A -> Q
Shift Right + A -> W
Altgr (Ctrl Left + Alt Right) + Shift Right + A -> E