electron/brightray/browser/default_web_contents_delegate_mac.mm

15 lines
390 B
Text
Raw Normal View History

#import "browser/default_web_contents_delegate.h"
#import "content/public/browser/native_web_keyboard_event.h"
#import <AppKit/AppKit.h>
namespace brightray {
void DefaultWebContentsDelegate::HandleKeyboardEvent(content::WebContents*, const content::NativeWebKeyboardEvent& event) {
if (event.skip_in_browser)
return;
[[NSApp mainMenu] performKeyEquivalent:event.os_event];
}
}