Skip to content

Commit

Permalink
Add copy paste for data export
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Mar 5, 2024
1 parent d201710 commit bce1b10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/electron/electron/main/services/WindowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,18 @@ export class WindowService {
return { action: 'deny' };
});

const template = [
{
label: 'Edit',
submenu: [
{ label: 'Copy', accelerator: 'CmdOrCtrl+C', selector: 'copy:' },
{ label: 'Paste', accelerator: 'CmdOrCtrl+V', selector: 'paste:' }
]
}
];

Menu.setApplicationMenu(Menu.buildFromTemplate(template));

this.dataExportWindow.show();

this.dataExportWindow.on('close', () => {
Expand Down

0 comments on commit bce1b10

Please sign in to comment.