Skip to content

v1.0.1 - windows: preserve language on switch

Choose a tag to compare

@0xJohnnyboy 0xJohnnyboy released this 01 Dec 14:35
· 66 commits to main since this release

What's New

Windows Language Preservation 🎯

Windows now correctly preserves your system language when switching keyboard layouts. For example, you can now use a French language setting with a US International keyboard layout without Windows forcing the language to English.

Improvements

  • KLID Verification: Correctly distinguishes between layout variants (e.g., US International vs US International Dead Keys)
  • Debug Logging: Enhanced debug output to troubleshoot layout switching issues
  • Code Cleanup: Removed unused functions and improved code maintainability

Documentation

  • Added warning about needing to install keyboard layouts on your system before Polykeys can switch to them
  • Updated Windows platform implementation details
  • Added --debug flag usage example

Technical Details

  • Enumerates installed layouts with GetKeyboardLayoutList()
  • Matches both device ID and current language ID
  • Verifies actual KLID to select correct layout variant
  • Preserves system language throughout the switching process

Full Changelog: v1.0.0...v1.0.1