Compare commits

...

2 Commits

Author SHA1 Message Date
Lea Anthony
d17255e44f v1.16.4-pre3 2021-04-22 08:57:05 +10:00
Lea Anthony
7c20be48e7 Backport of smart quote disable fix 2021-04-22 08:56:06 +10:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
package cmd
// Version - Wails version
const Version = "v1.16.4-pre2"
const Version = "v1.16.4-pre3"

View File

@@ -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;