From 082fb165d392c9f35997b76a7f42a620c96eb30c Mon Sep 17 00:00:00 2001 From: Pravesh Sharma Date: Wed, 27 Mar 2024 16:41:08 +0530 Subject: [PATCH] Implemented shortcut mapping for the edit menu in the query tool. --- docs/en_US/release_notes_8_5.rst | 1 + .../sqleditor/static/js/components/sections/MainToolBar.jsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en_US/release_notes_8_5.rst b/docs/en_US/release_notes_8_5.rst index 8d170d559..cd2c66dc0 100644 --- a/docs/en_US/release_notes_8_5.rst +++ b/docs/en_US/release_notes_8_5.rst @@ -36,6 +36,7 @@ Bug fixes | `Issue #7165 `_ - Fixed schema diff wrong query generation for table, foreign table and sequence. | `Issue #7210 `_ - Fixed an issue where table properties were not updating from properties dialog. | `Issue #7229 `_ - Fix an issue in table dialog where changing column name was not syncing table constraints appropriately. + | `Issue #7248 `_ - Fixed rollback and commit button activation on execute button click. | `Issue #7255 `_ - Fixed an issue where taking backup of a shared server was using server owner's user name. | `Issue #7262 `_ - Fix an issue in editor where replace option in query tool edit menu is not working on non-Mac OS. | `Issue #7268 `_ - Fix an issue in editor where Format SQL shortcut and multiline selection are not working. diff --git a/web/pgadmin/tools/sqleditor/static/js/components/sections/MainToolBar.jsx b/web/pgadmin/tools/sqleditor/static/js/components/sections/MainToolBar.jsx index 006f25d18..8b646acb2 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/sections/MainToolBar.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/MainToolBar.jsx @@ -454,8 +454,8 @@ export function MainToolBar({containerRef, onFilterClick, onManageMacros}) { } - disabled={!queryToolCtx.params.is_query_tool} - name="menu-edit" ref={editMenuRef} onClick={toggleMenu} /> + disabled={!queryToolCtx.params.is_query_tool} accesskey={shortcut_key(queryToolPref.btn_edit_options)} + name="menu-edit" ref={editMenuRef} onClick={toggleMenu} /> }