From 25ba53ea51dc568f7cea0ee2e7e478b4abfc2798 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 16 May 2019 09:57:45 +0200 Subject: [PATCH] ui/app: (macOS) suppress key shortcuts beeps Signed-off-by: Elias Naur --- ui/app/gl_macos.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/app/gl_macos.m b/ui/app/gl_macos.m index d039bcf9..5eb8d219 100644 --- a/ui/app/gl_macos.m +++ b/ui/app/gl_macos.m @@ -96,6 +96,10 @@ CVDisplayLinkRef displayLink; const char *utf8 = [string UTF8String]; gio_onText((__bridge CFTypeRef)self, (char *)utf8); } +- (void)doCommandBySelector:(SEL)sel { + // Don't pass commands up the responder chain. + // They will end up in a beep. +} @end CFTypeRef gio_createGLView() {