summaryrefslogtreecommitdiff
path: root/devel/electron4/files/patch-electron_lib_browser_api_dialog.js
blob: f4950b8d7fe3a682db4386589c7981dc74a00e2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- electron/lib/browser/api/dialog.js.orig	2019-05-23 00:28:36 UTC
+++ electron/lib/browser/api/dialog.js
@@ -54,7 +54,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}`