mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
When using X11 forwarding from non-standard X servers (e.g. XQuartz, Xephyr), the XKB key names reported by the remote server do not match the expected evdev names, causing all keys to map to RDP_SCANCODE_UNKNOWN. Add a keysym-to-scancode lookup table as fallback. Unlike XKB key names, keysyms are standardized across X11 implementations. The fallback only fills keycodes that remain unmapped after the XKB pass, so standard setups are unaffected. Tested with X11 forwarding from Exegol (Docker) via XQuartz on macOS, and natively on Linux and macOS. Related to #4215 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>