Stop annoying exceptions in the preferences window
This commit is contained in:
parent
a4bfb026a8
commit
70d68a500e
@ -132,7 +132,7 @@
|
|||||||
-(void)keyDown:(NSEvent *)theEvent
|
-(void)keyDown:(NSEvent *)theEvent
|
||||||
{
|
{
|
||||||
if (!is_button_being_modified) {
|
if (!is_button_being_modified) {
|
||||||
if (self.firstResponder != self.controlsTableView) {
|
if (self.firstResponder != self.controlsTableView && [theEvent type] != NSEventTypeFlagsChanged) {
|
||||||
[super keyDown:theEvent];
|
[super keyDown:theEvent];
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -152,9 +152,6 @@
|
|||||||
if (event.modifierFlags > previousModifiers) {
|
if (event.modifierFlags > previousModifiers) {
|
||||||
[self keyDown:event];
|
[self keyDown:event];
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
[self keyUp:event];
|
|
||||||
}
|
|
||||||
|
|
||||||
previousModifiers = event.modifierFlags;
|
previousModifiers = event.modifierFlags;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user