might help with #3, better check for if the window has focus or not

i'm not 100% sure if this will actually help though as i've not figured
out completely how to reproduce the issue
This commit is contained in:
Gered 2016-01-04 01:40:48 -05:00
parent fd84ef242f
commit 0fd299cf44

View file

@ -289,7 +289,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
* main thread.
*/
@Override public void nativeKeyPressed( final NativeKeyEvent event ) {
if (Settings.useGlobalHotkeys.get() || this.hasFocus()) {
if (Settings.useGlobalHotkeys.get() || this.isFocused()) {
int keyCode = event.getKeyCode();
boolean hotkeysEnabler = ( keyCode == Settings.hotkeyLock.get() );