x11: handle X11's multi-key, a.k.a compose key.

This commit is contained in:
Emilio Cobos Álvarez 2016-07-04 16:20:18 -07:00
parent 1a3f2e031a
commit 952ca7cfed
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 4 additions and 1 deletions

View file

@ -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,

View file

@ -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,