Skip to content

Version 1.0.3

Latest
Compare
Choose a tag to compare
@KoalafiedDev KoalafiedDev released this 12 Jan 21:05
· 7 commits to master since this release
6e88465

Modernized Caps Lock detection and framework improvements by KoalafiedDev:

  • Uses macOS's native Carbon framework to detect modifier key state changes.
  • Monitors kCGEventFlagsChanged events and checks modifier flags directly.
  • Eliminates hardcoded key codes for better compatibility with different keyboard layouts.
  • More reliable as it directly detects Caps Lock state, supporting physical and virtual keyboards.

Notes for Num Lock and Scroll Lock:

  • macOS lacks built-in constants for these modifiers.
  • For support, consider:
    • Querying LED states with IOKit.
    • Using a USB HID descriptor parser.
    • Maintaining a mapping of known key codes for different keyboard types.