summaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-electron_lib_browser_api_dialog.js
blob: 6c7727e89dc9e7b49110e31126fa7c2e37e96d05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- electron/lib/browser/api/dialog.js.orig	2020-03-24 05:00:48 UTC
+++ electron/lib/browser/api/dialog.js
@@ -28,7 +28,7 @@ const normalizeAccessKey = (text) => {
   // 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}`;