From 3f33cd192974c6cd2c488fec9860cdae779abac6 Mon Sep 17 00:00:00 2001 From: Matteo Signer Date: Sun, 8 Oct 2017 13:59:45 +0200 Subject: [PATCH] Make ISO_Left_Tab generate VirtualKeyCode::Tab (#308) * Make ISO_Left_Tab generate VirtualKeyCode::Tab * Add changes to changelog --- CHANGELOG.md | 1 + src/platform/linux/x11/events.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c3bea35..2e830447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased - Fixed issue of calls to `set_inner_size` blocking on Windows. +- Mapped `ISO_Left_Tab` to `VirtualKeyCode::Tab` to make the key work with modifiers - Fixed the X11 backed on 32bit targets # Version 0.8.2 (2017-09-28) diff --git a/src/platform/linux/x11/events.rs b/src/platform/linux/x11/events.rs index 6bae009a..c17cfe7c 100644 --- a/src/platform/linux/x11/events.rs +++ b/src/platform/linux/x11/events.rs @@ -171,6 +171,7 @@ pub fn keysym_to_element(keysym: libc::c_uint) -> Option { //ffi::XK_Super_R => events::VirtualKeyCode::Super_r, //ffi::XK_Hyper_L => events::VirtualKeyCode::Hyper_l, //ffi::XK_Hyper_R => events::VirtualKeyCode::Hyper_r, + ffi::XK_ISO_Left_Tab => events::VirtualKeyCode::Tab, ffi::XK_space => events::VirtualKeyCode::Space, //ffi::XK_exclam => events::VirtualKeyCode::Exclam, //ffi::XK_quotedbl => events::VirtualKeyCode::Quotedbl,