1
0
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:
Steve-Mcl 2022-07-20 12:30:52 +01:00
parent 1b53b5b927
commit 273404e24d

View File

@ -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