5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:29:53 +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];
return self;
}
- (void)keyDown:(NSEvent *)event {
}
- (BOOL)canBecomeKeyWindow {
return YES;
}