From ef227579fb240d526a4b73626f67d2b481bbd14a Mon Sep 17 00:00:00 2001 From: shubhiscoding Date: Sun, 9 Jun 2024 13:06:15 +0530 Subject: [PATCH] Added command Ctrl + D for executing GenerateDocumentationAction --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index e582107535..6f5518826b 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -718,7 +718,10 @@ export const EditorUI = (props: EditorUIProps) => { label: intl.formatMessage({ id: 'editor.generateDocumentation' }), contextMenuOrder: 0, // choose the order contextMenuGroupId: 'gtp', // create a new grouping - keybindings: [], + keybindings: [ + // Keybinding for Ctrl + D + monacoRef.current.KeyMod.CtrlCmd | monacoRef.current.KeyCode.KeyD + ], run: async () => { const file = await props.plugin.call('fileManager', 'getCurrentFile') const content = await props.plugin.call('fileManager', 'readFile', file)