From 3c8f3ad3fc07f8dee9d948c6de4054e5808ce4af Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 2 Mar 2018 19:37:40 +0200 Subject: [PATCH] Stop annoying beeps and exceptions --- Cocoa/GBView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cocoa/GBView.m b/Cocoa/GBView.m index 5e1e31a..4773d38 100644 --- a/Cocoa/GBView.m +++ b/Cocoa/GBView.m @@ -204,7 +204,7 @@ } } - if (!handled) { + if (!handled && [theEvent type] != NSEventTypeFlagsChanged) { [super keyDown:theEvent]; } } @@ -238,7 +238,7 @@ } } - if (!handled) { + if (!handled && [theEvent type] != NSEventTypeFlagsChanged) { [super keyUp:theEvent]; } }