From a1fbf309b7f55c01e22274cd81b4e9e4d356a711 Mon Sep 17 00:00:00 2001 From: insofaras Date: Sun, 12 Jun 2016 19:51:25 +0100 Subject: [PATCH] linux: don't send modifier keypresses --- linux_4ed.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux_4ed.cpp b/linux_4ed.cpp index 09d7250f..52144ef3 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -2146,6 +2146,11 @@ LinuxHandleX11Events(void) if(key == '\r') key = '\n'; if(key_no_caps == '\r') key_no_caps = '\n'; + // don't push modifiers + if(keysym >= XK_Shift_L && keysym <= XK_Hyper_R){ + break; + } + if(keysym == XK_ISO_Left_Tab){ key = key_no_caps = '\t'; mods[MDFR_SHIFT_INDEX] = 1;