5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:51:26 +08:00

Prevent beeps when pressing a key in Mac window

This commit is contained in:
Lea Anthony 2023-03-20 20:48:22 +11:00
parent ba82f27534
commit b656bd2194

View File

@ -16,6 +16,8 @@ extern bool hasListeners(unsigned int);
[self setMovableByWindowBackground:YES]; [self setMovableByWindowBackground:YES];
return self; return self;
} }
- (void)keyDown:(NSEvent *)event {
}
- (BOOL)canBecomeKeyWindow { - (BOOL)canBecomeKeyWindow {
return YES; return YES;
} }