Double click group title to edit (#714)

* Double click group title to edit

* Add playwright test

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-09-02 18:01:02 -04:00
committed by GitHub
parent 80e4384644
commit 4ad1e67ebf
12 changed files with 228 additions and 13 deletions

View File

@@ -100,6 +100,10 @@ const linkReleaseTriggerMode = computed(() => {
})
const canvasEventHandler = (e: LiteGraphCanvasEvent) => {
if (!['empty-release', 'empty-double-click'].includes(e.detail.subType)) {
return
}
const shiftPressed = (e.detail.originalEvent as KeyboardEvent).shiftKey
if (e.detail.subType === 'empty-release') {