blob: c81502f3649ec079a411df82b0c617cd9a71c04b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- electron/lib/browser/api/dialog.js.orig 2019-09-11 17:30:11 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}`
|