mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #4623 from MurzNN/patch-1
Fix menu on change keyboard language issue #4345
This commit is contained in:
commit
941f92530d
@ -19,7 +19,7 @@ const {app, shell, Menu} = require('electron');
|
|||||||
// Menu template from http://electron.atom.io/docs/api/menu/, edited
|
// Menu template from http://electron.atom.io/docs/api/menu/, edited
|
||||||
const template = [
|
const template = [
|
||||||
{
|
{
|
||||||
label: 'Edit',
|
label: '&Edit',
|
||||||
submenu: [
|
submenu: [
|
||||||
{ role: 'undo' },
|
{ role: 'undo' },
|
||||||
{ role: 'redo' },
|
{ role: 'redo' },
|
||||||
@ -33,7 +33,7 @@ const template = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'View',
|
label: '&View',
|
||||||
submenu: [
|
submenu: [
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{ role: 'resetzoom' },
|
{ role: 'resetzoom' },
|
||||||
@ -45,6 +45,7 @@ const template = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
label: '&Window',
|
||||||
role: 'window',
|
role: 'window',
|
||||||
submenu: [
|
submenu: [
|
||||||
{ role: 'minimize' },
|
{ role: 'minimize' },
|
||||||
@ -52,6 +53,7 @@ const template = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
label: '&Help',
|
||||||
role: 'help',
|
role: 'help',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
@ -122,7 +124,7 @@ if (process.platform === 'darwin') {
|
|||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
template.unshift({
|
template.unshift({
|
||||||
label: 'File',
|
label: '&File',
|
||||||
submenu: [
|
submenu: [
|
||||||
// For some reason, 'about' does not seem to work on windows.
|
// For some reason, 'about' does not seem to work on windows.
|
||||||
/*{
|
/*{
|
||||||
|
Loading…
Reference in New Issue
Block a user