https://bugs.kde.org/show_bug.cgi?id=484044

--- Comment #3 from Ivan Sorokin <[email protected]> ---
Now that the Linux implementation for win32-input-mode based on xkbcommon has
been merged, it is worth considering support for Windows and macOS.
Unfortunately, I do not have access to these operating systems to implement or
test this myself, but the task should be relatively straightforward for someone
with access to these environments.

For the implementation, the current #ifdef HAVE_XKBCOMMON block needs to be
expanded with platform-specific checks. On Windows, the task is actually
trivial because QKeyEvent::nativeVirtualKey() and nativeScanCode() already
return exactly what the protocol requires, so we just need to pass those values
through directly without using xkb. On macOS, QKeyEvent provides native Apple
keycodes, so we would need to write a switch-case helper function to map those
Mac specific codes to the Windows Virtual Key constants that are already
defined in WinKeys.h.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to