add Select All to editor context menu

This commit is contained in:
David Lechner
2021-01-24 10:56:41 -06:00
parent fcb0bf3d9c
commit 73f155d370
3 changed files with 8 additions and 0 deletions
+6
View File
@@ -158,6 +158,12 @@ class Editor extends React.Component<EditorProps> {
icon="clipboard"
label={isMacOS() ? 'Cmd-V' : 'Ctrl-V'}
/>
<MenuItem
onClick={() => this.editor?.selectAll()}
text={i18n.translate(EditorStringId.SelectAll)}
icon="blank"
label={isMacOS() ? 'Cmd-A' : 'Ctrl-A'}
/>
<MenuDivider />
<MenuItem
onClick={(): void => this.editor?.undo()}
+1
View File
@@ -3,6 +3,7 @@
"placeholder": "Write your program here...",
"copy": "Copy",
"paste": "Paste",
"selectAll": "Select All",
"undo": "Undo",
"redo": "Redo"
}
+1
View File
@@ -7,6 +7,7 @@ export enum EditorStringId {
Placeholder = 'editor.placeholder',
Copy = 'editor.copy',
Paste = 'editor.paste',
SelectAll = 'editor.selectAll',
Undo = 'editor.undo',
Redo = 'editor.redo',
}