Fixed an issue where keyboard shortcut for context menu is not working when using Firefox on CentOS7. Fixes #4906

This commit is contained in:
Murtuza Zabuawala
2019-11-08 18:41:57 +05:30
committed by Akshay Joshi
parent 2522c8c9e2
commit 022cf3d93c
2 changed files with 5 additions and 3 deletions

View File

@@ -48,3 +48,4 @@ Bug fixes
| `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 #4896 <https://redmine.postgresql.org/issues/4896>`_ - Fixed an issue where escape key not working to close the open/save file dialog.
| `Issue #4906 <https://redmine.postgresql.org/issues/4906>`_ - Fixed an issue where keyboard shortcut for context menu is not working when using Firefox on CentOS7.

View File

@@ -307,8 +307,9 @@ _.extend(pgBrowser.keyboardNavigation, {
},
bindContextMenu: function(event) {
const tree = this.getTreeDetails();
const left = $(event.srcElement).find('.aciTreeEntry').position().left + 70;
const top = $(event.srcElement).find('.aciTreeEntry').position().top + 70;
let _srcElement = event.srcElement || event.target;
const left = $(_srcElement).find('.aciTreeEntry').position().left + 70;
const top = $(_srcElement).find('.aciTreeEntry').position().top + 70;
tree.t.blur(tree.i);
$('#tree').trigger('blur');