Add One Key Keyboard Layout Switcher mod#4536
Conversation
This mod allows switching keyboard layouts with a single key press instead of a two-key combination, supporting various keys like Win, Alt, and Menu.
|
Yes, there are mods that modify window frames, etc, that also target dwm.exe. I am afraid if there are multiple DWM processes, they can glitch. Even one can choose to use this mod together with KeyClick mod. So it will inject the both? |
|
P.S. Yes, just tried this, when this mod is made into a toolmod, the Key Click mod injects the original DWM and this toolmod, so the sounds are doubled. This is a clear incompatibility. With other mods targeting DWM, similar things can happen. |
|
If both mods are tool mods, it's fine, other tool mod processes are ignored, so they will ignore each other. Regular mods are injected into tool mods, which is not optimal. In the next Windhawk update, I plan on excluding them in this case as well. We can merge it as is for now, but eventually I'd prefer both mods to become tool mods. |
|
I agree. When tool mods target Windhawk.exe, there is no such problem, because there are no mods that target Windhawk itself. But for processes like DWM, this is an issue because there are multiple mods that are not toolmods that also target the same process. |
Submission reviewNote: This review was done by Claude, and then refined manually. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding. Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them. This should almost certainly be a tool mod, and there's an existing mod that does nearly the same thing the right way. The biggest items below all disappear if you adopt that structure.
2. No blocking work inside the The fix is the standard one (and your worker thread already has a message loop): from the hook, 3. Prefer the root-cause API over synthesizing Ctrl+Shift / Alt+Shift. Sending the OS layout-switch hotkey via 4. Default-enabled keys repurpose Right Alt (AltGr) and Right Win, blocking them completely. Defaults are 5. Unload can hang the host process. Optional improvements
Minor polish — none of this affects users, so it's your call.
Functionality notes
Non-critical observations about the feature behavior itself.
|
|
All raised issues are addressed. |
This mod allows switching keyboard layouts with a single key press instead of a two-key combination, supporting various keys like Win, Alt, and Menu.
Changelog
If this pull request updates an existing mod, describe the changes below:
Mod authorship
If this pull request introduces a new mod, please complete the section below.
This mod was created by:
Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.