Skip to content

Commit 9b276a6

Browse files
authored
No searchbox on link release unless shift pressed (#108)
1 parent 99193e4 commit 9b276a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/NodeSearchBoxPopover.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ const nodeSearchService = (
7272
7373
const canvasEventHandler = (e: LiteGraphCanvasEvent) => {
7474
const shiftPressed = (e.detail.originalEvent as KeyboardEvent).shiftKey;
75-
if (e.detail.subType === "empty-release" && shiftPressed) {
75+
// Ignore empty releases unless shift is pressed
76+
// Empty release without shift is trigger right click menu
77+
if (e.detail.subType === "empty-release" && !shiftPressed) {
78+
return;
79+
}
80+
81+
if (e.detail.subType === "empty-release") {
7682
const destIsInput = e.detail.linkReleaseContext.node_from !== undefined;
7783
const filter = destIsInput
7884
? nodeSearchService.getFilterById("input")

0 commit comments

Comments
 (0)