Skip to content

Commit

Permalink
macOS: Allow graceful close with Cmd+Q
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte authored and richardhozak committed Dec 9, 2020
1 parent 92c6e16 commit 2cd91be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webview-sys/webview_cocoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ WEBVIEW_API int webview_init(webview_t w) {

title = objc_msgSend(get_nsstring("Quit "),
sel_registerName("stringByAppendingString:"), appName);
item = create_menu_item(title, "terminate:", "q");
item = create_menu_item(title, wv->frameless ? "terminate:" : "close", "q");
objc_msgSend(appMenu, sel_registerName("addItem:"), item);

objc_msgSend(objc_msgSend((id)objc_getClass("NSApplication"),
Expand Down

0 comments on commit 2cd91be

Please sign in to comment.