linux: don't send modifier keypresses

This commit is contained in:
insofaras 2016-06-12 19:51:25 +01:00
parent a2f653bc07
commit a1fbf309b7
1 changed files with 5 additions and 0 deletions

View File

@ -2146,6 +2146,11 @@ LinuxHandleX11Events(void)
if(key == '\r') key = '\n'; if(key == '\r') key = '\n';
if(key_no_caps == '\r') key_no_caps = '\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){ if(keysym == XK_ISO_Left_Tab){
key = key_no_caps = '\t'; key = key_no_caps = '\t';
mods[MDFR_SHIFT_INDEX] = 1; mods[MDFR_SHIFT_INDEX] = 1;