Skip to content

Commit

Permalink
feat: add openProcessManager to View menu (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialAro authored Apr 18, 2024
1 parent c497230 commit b73c5f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
"menu.view.back": "Back",
"menu.view.forward": "Forward",
"menu.view.lockFerdium": "Lock Ferdium",
"menu.view.openProcessManager": "Open Process Manager",
"menu.view.openQuickSwitch": "Open Quick Switch",
"menu.view.reloadFerdium": "Reload Ferdium",
"menu.view.reloadService": "Reload Service",
Expand Down
12 changes: 12 additions & 0 deletions src/lib/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
systemPreferences,
webContents,
} from '@electron/remote';
import { ipcRenderer } from 'electron';
import { type MenuItemConstructorOptions, clipboard } from 'electron';
import { fromJS } from 'immutable';
import { action, autorun, makeObservable, observable } from 'mobx';
Expand Down Expand Up @@ -163,6 +164,10 @@ const menuItems = defineMessages({
id: 'menu.view.toggleServiceDevTools',
defaultMessage: 'Toggle Service Developer Tools',
},
openProcessManager: {
id: 'menu.view.openProcessManager',
defaultMessage: 'Open Process Manager',
},
reloadService: {
id: 'menu.view.reloadService',
defaultMessage: 'Reload Service',
Expand Down Expand Up @@ -763,6 +768,13 @@ class FranzMenu implements StoresProps {
{
type: 'separator',
},
{
label: intl.formatMessage(menuItems.openProcessManager),
accelerator: `${shiftKey()}+Escape`,
click: () => {
ipcRenderer.send('openProcessManager');
},
},
{
label: intl.formatMessage(menuItems.toggleDevTools),
accelerator: `${cmdOrCtrlShortcutKey()}+${altKey()}+I`,
Expand Down

0 comments on commit b73c5f9

Please sign in to comment.