From 882506dfb16ffb3cffc3e1f8f2235b9bb03d380a Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Thu, 21 Aug 2025 22:29:26 -0700 Subject: [PATCH] Fix: Search Box Implementation for keyboard shortcut (#5140) * refactor: Move searchbox preference to the searchboxstore * fix: Ensure that the search box uses the preferred implementation. * polish: Open at current mouse location. * [test] add basic unit tests for searchBoxStore * types/testing: Tweak the types and setup for the searchBoxStore tests --------- Co-authored-by: Arjan Singh --- src/components/graph/GraphCanvas.vue | 9 +- .../searchbox/NodeSearchBoxPopover.vue | 13 +- src/lib/litegraph/src/LGraphCanvas.ts | 27 +++- src/stores/workspace/searchBoxStore.ts | 44 +++++- tests-ui/tests/store/searchBoxStore.test.ts | 137 ++++++++++++++++++ 5 files changed, 209 insertions(+), 21 deletions(-) create mode 100644 tests-ui/tests/store/searchBoxStore.test.ts diff --git a/src/components/graph/GraphCanvas.vue b/src/components/graph/GraphCanvas.vue index 309bf9342..89d90c63c 100644 --- a/src/components/graph/GraphCanvas.vue +++ b/src/components/graph/GraphCanvas.vue @@ -32,7 +32,7 @@ /> - + @@ -47,7 +47,7 @@