Merge pull request #674 from KKishikawa/fix-mac-select-all-shotcut

fix: Mac - shortcut for select all
This commit is contained in:
Infinity
2023-12-24 03:58:26 +01:00
committed by GitHub
3 changed files with 14 additions and 0 deletions

View File

@@ -835,6 +835,16 @@ registerCommand({
onClick: () => getElectron().send('window-action', 'paste'),
});
registerCommand({
id: 'edit.selectAll',
category: 'Edit',
name: 'Select All',
keyText: 'CtrlOrCommand+A',
systemCommand: true,
testEnabled: () => getElectron() != null,
onClick: () => getElectron().send('window-action', 'selectAll'),
});
const electron = getElectron();
if (electron) {
electron.addEventListener('run-command', (e, commandId) => runCommand(commandId));