From 70d68a500e5a14b22f35a4cd579738612e5adcc8 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 17 Jun 2018 23:24:02 +0300 Subject: [PATCH] Stop annoying exceptions in the preferences window --- Cocoa/GBPreferencesWindow.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Cocoa/GBPreferencesWindow.m b/Cocoa/GBPreferencesWindow.m index 66d8e4c..051ac2f 100644 --- a/Cocoa/GBPreferencesWindow.m +++ b/Cocoa/GBPreferencesWindow.m @@ -132,7 +132,7 @@ -(void)keyDown:(NSEvent *)theEvent { if (!is_button_being_modified) { - if (self.firstResponder != self.controlsTableView) { + if (self.firstResponder != self.controlsTableView && [theEvent type] != NSEventTypeFlagsChanged) { [super keyDown:theEvent]; } return; @@ -152,9 +152,6 @@ if (event.modifierFlags > previousModifiers) { [self keyDown:event]; } - else { - [self keyUp:event]; - } previousModifiers = event.modifierFlags; }