runelite-client: Handle releasing modifiers first correctly

if you pressed alt+a, the released alt then a hotkeyReleased would never be called
This commit is contained in:
Max Weber
2018-07-16 17:58:40 -06:00
parent 6a2ec1335a
commit b83fcd4fc2

View File

@@ -110,6 +110,11 @@ public class Keybind
keyCode = KeyEvent.VK_UNDEFINED;
}
if (e.getID() == KeyEvent.KEY_RELEASED && keyCode != KeyEvent.VK_UNDEFINED)
{
return this.keyCode == keyCode;
}
return this.keyCode == keyCode && this.modifiers == modifiers;
}