mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
remove electron augmentation and use current API (#4138)
This commit is contained in:
parent
b29a0f2602
commit
9b8bce5015
6
packages/insomnia-app/app/electron.d.ts
vendored
6
packages/insomnia-app/app/electron.d.ts
vendored
@ -1,6 +0,0 @@
|
||||
declare module 'electron' {
|
||||
export interface MenuItemConstructorOptions {
|
||||
// see: https://github.com/electron/electron/issues/30719 for why this module augmentation is necessary.
|
||||
selector?: string;
|
||||
}
|
||||
}
|
@ -186,12 +186,12 @@ export function createWindow() {
|
||||
{
|
||||
label: `${MNEMONIC_SYM}Undo`,
|
||||
accelerator: 'CmdOrCtrl+Z',
|
||||
selector: 'undo:',
|
||||
role: 'undo',
|
||||
},
|
||||
{
|
||||
label: `${MNEMONIC_SYM}Redo`,
|
||||
accelerator: 'Shift+CmdOrCtrl+Z',
|
||||
selector: 'redo:',
|
||||
role: 'redo',
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
@ -199,22 +199,22 @@ export function createWindow() {
|
||||
{
|
||||
label: `Cu${MNEMONIC_SYM}t`,
|
||||
accelerator: 'CmdOrCtrl+X',
|
||||
selector: 'cut:',
|
||||
role: 'cut',
|
||||
},
|
||||
{
|
||||
label: `${MNEMONIC_SYM}Copy`,
|
||||
accelerator: 'CmdOrCtrl+C',
|
||||
selector: 'copy:',
|
||||
role: 'copy',
|
||||
},
|
||||
{
|
||||
label: `${MNEMONIC_SYM}Paste`,
|
||||
accelerator: 'CmdOrCtrl+V',
|
||||
selector: 'paste:',
|
||||
role: 'paste',
|
||||
},
|
||||
{
|
||||
label: `Select ${MNEMONIC_SYM}All`,
|
||||
accelerator: 'CmdOrCtrl+A',
|
||||
selector: 'selectAll:',
|
||||
role: 'selectAll',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user