Browse Source

Fix to linux modifier key change reporting.

tags/2021-05-28
jules 10 years ago
parent
commit
ff99c6dbc1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_gui_basics/native/juce_linux_Windowing.cpp

+ 2
- 1
modules/juce_gui_basics/native/juce_linux_Windowing.cpp 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)


Loading…
Cancel
Save