mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where escape key not working to close the open/save file dialog. Fixes #4896
This commit is contained in:
committed by
Akshay Joshi
parent
475a717cd6
commit
2522c8c9e2
@@ -2256,7 +2256,7 @@ define('tools.querytool', [
|
||||
* loses focus and events don't work.
|
||||
*/
|
||||
$(window).on('keydown', (e)=>{
|
||||
if(self.gridView.keyAction) {
|
||||
if(($('.sql-editor').find(e.target).length !== 0 || e.target == $('body.wcDesktop')[0]) && self.gridView.keyAction) {
|
||||
self.gridView.keyAction(e);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user