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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user