Skip to content
Snippets Groups Projects
Commit ef5d1eb2 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Avoid tracking pointer into non-modifier key after layout switch

parent bbacaca0
No related branches found
Tags 0.1.24
No related merge requests found
...@@ -704,7 +704,11 @@ public final class PointerTracker implements PointerTrackerQueue.Element, ...@@ -704,7 +704,11 @@ public final class PointerTracker implements PointerTrackerQueue.Element,
// {@link #setKeyboard}. In those cases, we should update key according to the new // {@link #setKeyboard}. In those cases, we should update key according to the new
// keyboard layout. // keyboard layout.
if (callListenerOnPressAndCheckKeyboardLayoutChange(key, 0 /* repeatCount */)) { if (callListenerOnPressAndCheckKeyboardLayoutChange(key, 0 /* repeatCount */)) {
key = onDownKey(x, y, eventTime); key = getKeyOn(x, y);
if(!key.isModifier())
key = null;
else
key = onDownKey(x, y, eventTime);
} }
if(key == null) return; if(key == null) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment