mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
focus search input when opened via context menu
This commit is contained in:
parent
1b53b5b927
commit
273404e24d
@ -67,6 +67,10 @@ RED.contextMenu = (function () {
|
|||||||
splice: isSingleLink ? selection.links[0] : undefined,
|
splice: isSingleLink ? selection.links[0] : undefined,
|
||||||
// spliceMultiple: isMultipleLinks
|
// spliceMultiple: isMultipleLinks
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
onpostselect: function() {
|
||||||
|
// ensure quick add dialog search input has focus
|
||||||
|
$('#red-ui-type-search-input').trigger('focus')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(hasLinks) ? { // has least 1 wire selected
|
(hasLinks) ? { // has least 1 wire selected
|
||||||
|
Loading…
Reference in New Issue
Block a user