diff options
Diffstat (limited to 'devel/electron13/files/patch-electron_lib_browser_api_dialog.ts')
-rw-r--r-- | devel/electron13/files/patch-electron_lib_browser_api_dialog.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-electron_lib_browser_api_dialog.ts b/devel/electron13/files/patch-electron_lib_browser_api_dialog.ts new file mode 100644 index 000000000000..094d7f49d1df --- /dev/null +++ b/devel/electron13/files/patch-electron_lib_browser_api_dialog.ts @@ -0,0 +1,11 @@ +--- electron/lib/browser/api/dialog.ts.orig 2021-01-25 12:13:30 UTC ++++ electron/lib/browser/api/dialog.ts +@@ -40,7 +40,7 @@ const normalizeAccessKey = (text: string) => { + // existing single underscores with a second underscore, replace double + // ampersands with a single ampersand, and replace a single ampersand with + // a single underscore +- if (process.platform === 'linux') { ++ if (process.platform === 'linux' || process.platform === 'freebsd') { + return text.replace(/_/g, '__').replace(/&(.?)/g, (match, after) => { + if (after === '&') return after; + return `_${after}`; |