mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
x11: handle X11's multi-key, a.k.a compose key.
This commit is contained in:
parent
1a3f2e031a
commit
952ca7cfed
|
@ -14,7 +14,7 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<VirtualKeyCode> {
|
||||||
//ffi::XK_Sys_Req => events::VirtualKeyCode::Sys_req,
|
//ffi::XK_Sys_Req => events::VirtualKeyCode::Sys_req,
|
||||||
ffi::XK_Escape => events::VirtualKeyCode::Escape,
|
ffi::XK_Escape => events::VirtualKeyCode::Escape,
|
||||||
ffi::XK_Delete => events::VirtualKeyCode::Delete,
|
ffi::XK_Delete => events::VirtualKeyCode::Delete,
|
||||||
//ffi::XK_Multi_key => events::VirtualKeyCode::Multi_key,
|
ffi::XK_Multi_key => events::VirtualKeyCode::Compose,
|
||||||
//ffi::XK_Kanji => events::VirtualKeyCode::Kanji,
|
//ffi::XK_Kanji => events::VirtualKeyCode::Kanji,
|
||||||
//ffi::XK_Muhenkan => events::VirtualKeyCode::Muhenkan,
|
//ffi::XK_Muhenkan => events::VirtualKeyCode::Muhenkan,
|
||||||
//ffi::XK_Henkan_Mode => events::VirtualKeyCode::Henkan_mode,
|
//ffi::XK_Henkan_Mode => events::VirtualKeyCode::Henkan_mode,
|
||||||
|
|
|
@ -220,6 +220,9 @@ pub enum VirtualKeyCode {
|
||||||
/// The space bar.
|
/// The space bar.
|
||||||
Space,
|
Space,
|
||||||
|
|
||||||
|
/// The "Compose" key on Linux.
|
||||||
|
Compose,
|
||||||
|
|
||||||
Numlock,
|
Numlock,
|
||||||
Numpad0,
|
Numpad0,
|
||||||
Numpad1,
|
Numpad1,
|
||||||
|
|
Loading…
Reference in a new issue