Merge pull request #5368 from gorenje/patch-4

Reveal node in search results via mouseover
pull/5375/head
Nick O'Leary 2025-12-04 14:52:30 +00:00 committed by GitHub
commit 6a75a084ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -440,6 +440,12 @@ RED.search = (function() {
$('<div>',{class:"red-ui-search-result-node-type"}).text(node.type).appendTo(contentDiv);
$('<div>',{class:"red-ui-search-result-node-id"}).text(node.id).appendTo(contentDiv);
div.on("mouseover", function(evt) {
if ( node.z == RED.workspaces.active() ) {
RED.view.reveal(node.id)
}
});
div.on("click", function(evt) {
evt.preventDefault();
currentIndex = i;