diff --git a/lib/renderer/webview/webview.h b/lib/renderer/webview/webview.h index c1733c85..35c18c38 100644 --- a/lib/renderer/webview/webview.h +++ b/lib/renderer/webview/webview.h @@ -2155,6 +2155,10 @@ struct webview_priv objc_setAssociatedObject(w->priv.delegate, "webview", (id)(w), OBJC_ASSOCIATION_ASSIGN); + // Disable damn smart quotes + // Credit: https://stackoverflow.com/a/31640511 + [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSAutomaticQuoteSubstitutionEnabled"]; + NSRect r = NSMakeRect(0, 0, w->width, w->height); NSUInteger style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable;