fixed issue where couldn't cut and selectAll on macos
This commit is contained in:
1 parent
9e71989ff5
commit
f9dbbae293
4 files changed
+24
No files matched your search
@@ -213,6 +213,24 @@ export const Menu: FC<LayoutProps> = () => {
|
||||
getFocusedWebContents()?.paste();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'menu.edit.cut',
|
||||
label: t('cut'),
|
||||
enabled: enabled,
|
||||
accelerator: Hotkey.Cut,
|
||||
click: () => {
|
||||
getFocusedWebContents()?.cut()
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'menu.edit.selectAll',
|
||||
label: t('selectAll'),
|
||||
enabled: enabled,
|
||||
accelerator: Hotkey.SelectAll,
|
||||
click: () => {
|
||||
getFocusedWebContents()?.selectAll()
|
||||
}
|
||||
},
|
||||
{ type: "separator" },
|
||||
{
|
||||
id: "menu.edit.insertNode",
|
||||
|
||||
@@ -46,6 +46,7 @@ export const Hotkey = {
|
||||
Build: hotkey("ctrl+b"),
|
||||
CloseEditor: hotkey("ctrl+w"),
|
||||
Copy: hotkey("ctrl+c"),
|
||||
Cut: hotkey('ctrl+x'),
|
||||
Delete: Key.Delete,
|
||||
Duplicate: hotkey("ctrl+d"),
|
||||
Enter: Key.Enter,
|
||||
@@ -60,6 +61,7 @@ export const Hotkey = {
|
||||
Save: hotkey("ctrl+s"),
|
||||
SearchTree: hotkey("ctrl+p"),
|
||||
SearchNode: hotkey("ctrl+f"),
|
||||
SelectAll: hotkey('ctrl+a'),
|
||||
Undo: hotkey("ctrl+z"),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user