mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-22 23:23:57 -06:00
Fixed delete object(shortcut key) affecting both text and Object Explorer items. #7683
This commit is contained in:
parent
88f033e2a8
commit
5d7ec14076
@ -262,9 +262,9 @@ _.extend(pgBrowser.keyboardNavigation, {
|
||||
node_obj, {action: 'create', item: tree.i}
|
||||
);
|
||||
},
|
||||
bindSubMenuDelete: function() {
|
||||
bindSubMenuDelete: function(event) {
|
||||
const tree = this.getTreeDetails();
|
||||
if (!tree.d || pgAdmin.Browser.Nodes[tree.t.itemData(tree.i)._type].collection_node === true || document.activeElement.className !== 'file-tree')
|
||||
if (!tree.d || pgAdmin.Browser.Nodes[tree.t.itemData(tree.i)._type].collection_node === true || !event?.target?.classList?.contains('file-tree'))
|
||||
return;
|
||||
|
||||
// Call delete object callback
|
||||
|
Loading…
Reference in New Issue
Block a user