Repository navigation
XKey v1.2.6
What's New
feat: Add overlay app detection for Smart Switch (v1.2.6)
Add intelligent overlay app detection to prevent Smart Switch from
overwriting the underlying app's language when using Spotlight, Raycast,
or Alfred. This solves the issue where toggling language in an overlay
would incorrectly save it as the preference for the app underneath.
Features:
- New OverlayAppDetector utility to detect visible overlay apps
- Optional "Detect Spotlight/Raycast/Alfred" setting in UI
- Skips saving language preference when overlay is active
- Restores underlying app's language when overlay closes
- Version bump to 1.2.6
Implementation:
- OverlayAppDetector uses Accessibility API to check window layers
- Callback system to restore language on overlay close
- Settings integration with toggle in Advanced > Smart Switch
- Only active when both Smart Switch and overlay detection enabled
Testing:
- Open Spotlight/Raycast → toggle language → close overlay
- Underlying app's language preference is preserved ✅
- Correct language restored when overlay closes ✅