mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 00:31:51 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
11 lines
610 B
TypeScript
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}`;
|