Fixed an issue where escape key not working to close the open/save file dialog. Fixes #4896

This commit is contained in:
Nagesh Dhope
2019-11-08 18:26:46 +05:30
committed by Akshay Joshi
parent 475a717cd6
commit 2522c8c9e2
2 changed files with 3 additions and 2 deletions

View File

@@ -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);
}
});