mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fixed an issue where shortcut keys are not working with manage macro. Fixes #5908
2) Fixed an issue where the cursor shifts its focus to the wrong window for all the query tool related model dialogs. Fixes #6161
This commit is contained in:
committed by
Akshay Joshi
parent
1f4affcb1e
commit
49095ccba6
@@ -506,13 +506,23 @@ define('tools.querytool', [
|
||||
transId = self.handler.transId;
|
||||
|
||||
if (!$container.hasClass('wcPanelTabContentHidden')) {
|
||||
setTimeout(function () {
|
||||
self.handler.gridView.query_tool_obj.focus();
|
||||
}, 200);
|
||||
// Trigger an event to update connection status flag
|
||||
pgBrowser.Events.trigger(
|
||||
'pgadmin:query_tool:panel:gain_focus:' + transId
|
||||
);
|
||||
|
||||
let modal_list = ['fileSelectionDlg', 'createModeDlg',
|
||||
'confirm', 'alert', 'confirmSave', 'newConnectionDialog',
|
||||
'macroDialog'];
|
||||
|
||||
/* check the modals inside the sqleditor are open, if not,
|
||||
focus on the editor instead. */
|
||||
if(!SqlEditorUtils.isModalOpen(modal_list)) {
|
||||
setTimeout(function () {
|
||||
self.handler.gridView.query_tool_obj.focus();
|
||||
}, 200);
|
||||
|
||||
// Trigger an event to update connection status flag
|
||||
pgBrowser.Events.trigger(
|
||||
'pgadmin:query_tool:panel:gain_focus:' + transId
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user