Stop annoying exceptions in the preferences window

This commit is contained in:
Lior Halphon 2018-06-17 23:24:02 +03:00
parent a4bfb026a8
commit 70d68a500e

View File

@ -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;
}