diff --git a/docs/en_US/keyboard_shortcuts.rst b/docs/en_US/keyboard_shortcuts.rst index 2194d63bc..cd0938d57 100644 --- a/docs/en_US/keyboard_shortcuts.rst +++ b/docs/en_US/keyboard_shortcuts.rst @@ -41,6 +41,12 @@ When using the syntax-highlighting SQL editors, the following shortcuts are avai +--------------------------+------------------+-------------------------------------+ | Ctrl+Alt+Right | Cmd+Option+Right | Move right one word | +--------------------------+------------------+-------------------------------------+ +| Ctrl+Shift+, | Ctrl+Shift+, | Comment selected code (Inline) | ++--------------------------+------------------+-------------------------------------+ +| Ctrl+Shift+. | Ctrl+Shift+. | Uncomment selected code (Inline) | ++--------------------------+------------------+-------------------------------------+ +| Ctrl+Shift+/ | Ctrl+Shift+/ | Comment/Uncomment code (Block) | ++--------------------------+------------------+-------------------------------------+ | Ctrl+A | Cmd+A | Select all | +--------------------------+------------------+-------------------------------------+ | Ctrl+C | Cmd+C | Copy selected text to the clipboard | diff --git a/web/pgadmin/static/bundle/codemirror.js b/web/pgadmin/static/bundle/codemirror.js index 6c3525b13..c8766ff13 100644 --- a/web/pgadmin/static/bundle/codemirror.js +++ b/web/pgadmin/static/bundle/codemirror.js @@ -13,6 +13,7 @@ import 'codemirror/addon/search/searchcursor'; import 'codemirror/addon/search/jump-to-line'; import 'codemirror/addon/edit/matchbrackets'; import 'codemirror/addon/edit/closebrackets'; +import 'codemirror/addon/comment/comment' import 'pgadmin.sqlfoldcode'; export default CodeMirror; \ No newline at end of file diff --git a/web/pgadmin/tools/datagrid/templates/datagrid/index.html b/web/pgadmin/tools/datagrid/templates/datagrid/index.html index 24ea7420f..cb700523c 100644 --- a/web/pgadmin/tools/datagrid/templates/datagrid/index.html +++ b/web/pgadmin/tools/datagrid/templates/datagrid/index.html @@ -24,14 +24,14 @@