mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 09:40:21 -06:00
Fixed an issue where delete object(shortcut key) affecting both text and Object Explorer items. #7683
This commit is contained in:
parent
729c370125
commit
19237fe247
@ -264,8 +264,7 @@ _.extend(pgBrowser.keyboardNavigation, {
|
||||
},
|
||||
bindSubMenuDelete: function() {
|
||||
const tree = this.getTreeDetails();
|
||||
|
||||
if (!tree.d || pgAdmin.Browser.Nodes[tree.t.itemData(tree.i)._type].collection_node === true)
|
||||
if (!tree.d || pgAdmin.Browser.Nodes[tree.t.itemData(tree.i)._type].collection_node === true || document.activeElement.className !== 'file-tree')
|
||||
return;
|
||||
|
||||
// Call delete object callback
|
||||
|
Loading…
Reference in New Issue
Block a user