Skip to content

Conversation

expikr
Copy link
Contributor

@expikr expikr commented May 17, 2025

@Susko3 windows' rawinput keyboard natively support blocking the Windows key via RIDEV_NOHOTKEYS while leaving alt-tab intact. The only drawback is that the Alt-Tab menu becomes the classic style when tabbing out.

@slouken slouken added this to the 3.4.0 milestone Aug 4, 2025
@slouken slouken self-assigned this Aug 27, 2025
@expikr expikr changed the title Add hint for blocking win key when using raw keyboard expand windows raw keyboard hintl with hotkey-blocking options. Aug 28, 2025
@expikr expikr marked this pull request as draft August 28, 2025 05:50
@expikr expikr force-pushed the rawkey branch 3 times, most recently from 91a9e26 to 6f443ff Compare August 28, 2025 06:28
@expikr expikr changed the title expand windows raw keyboard hintl with hotkey-blocking options. Add hint for blocking win key when using raw keyboard Aug 28, 2025
@expikr expikr marked this pull request as ready for review August 28, 2025 06:31
Copy link
Contributor

@Susko3 Susko3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've only looked at the code, I haven't yet tested it.

Copy link
Contributor

@Susko3 Susko3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my side and from our intended usage of this hint, I've tested it works as expected. ✅ I'd just like to note that on Windows 11, there is no old-style Alt-Tab dialog and pressing Alt-Tab just switches to the previously used application (this is fine and works as expected).

The internal implementation seems a bit convoluted and hacked in, there's space to improve it and improving it isn't too difficult, just try to follow existing practices and match existing code patterns.

The current code in this PR could affect GameInput, but refactoring the code should remove unexpected interactions. I haven't tested GameInput.

@expikr expikr force-pushed the rawkey branch 2 times, most recently from c20904a to 789aeb0 Compare August 30, 2025 20:53
@expikr expikr requested a review from Susko3 August 30, 2025 21:36
Copy link
Contributor

@Susko3 Susko3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks much better now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants