opnsense-ports/devel/electron32/files/patch-electron_lib_browser_api_dialog.ts
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

11 lines
610 B
TypeScript

--- electron/lib/browser/api/dialog.ts.orig 2023-12-04 18:19:02 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.replaceAll('_', '__').replaceAll(/&(.?)/g, (match, after) => {
if (after === '&') return after;
return `_${after}`;