1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Fix to linux modifier key change reporting.

This commit is contained in:
jules 2015-05-22 10:04:39 +01:00
parent fc2f9e848d
commit ff99c6dbc1

View file

@ -2038,6 +2038,8 @@ public:
void handleKeyPressEvent (XKeyEvent& keyEvent)
{
const ModifierKeys oldMods (currentModifiers);
char utf8 [64] = { 0 };
juce_wchar unicodeChar = 0;
int keyCode = 0;
@ -2064,7 +2066,6 @@ public:
keyDownChange = (sym != NoSymbol) && ! updateKeyModifiersFromSym (sym, true);
}
const ModifierKeys oldMods (currentModifiers);
bool keyPressed = false;
if ((sym & 0xff00) == 0xff00 || keyCode == XK_ISO_Left_Tab)