mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-29 04:09:49 +02:00
Stop annoying exceptions in the preferences window
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user