Files
ports/devel/electron42/files/patch-electron_lib_browser_api_dialog.ts
2026-10-04 04:07:15 +00:00

12 lines
610 B
TypeScript

--- electron/lib/browser/api/dialog.ts.orig 2026-05-07 20:19:20 UTC
+++ electron/lib/browser/api/dialog.ts
@@ -49,7 +49,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.replaceAll('_', '__').replaceAll(/&(.?)/g, (match, after) => {
if (after === '&') return after;
return `_${after}`;