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

@ -46,4 +46,5 @@ Bug fixes
| `Issue #4835 <https://redmine.postgresql.org/issues/4835>`_ - Fixed an issue where psql of v12 throwing "symbol not found" error while running Maintenance and Import/Export.
| `Issue #4845 <https://redmine.postgresql.org/issues/4845>`_ - Fixed potential error in the properties dialog for the Code tab.
| `Issue #4850 <https://redmine.postgresql.org/issues/4850>`_ - Fixed an issue where Datetimepicker control opens when clicking on the label.
| `Issue #4895 <https://redmine.postgresql.org/issues/4895>`_ - Fixed potential issue in reset function for nested objects.
| `Issue #4895 <https://redmine.postgresql.org/issues/4895>`_ - Fixed potential issue in reset function for nested objects.
| `Issue #4896 <https://redmine.postgresql.org/issues/4896>`_ - Fixed an issue where escape key not working to close the open/save file dialog.

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