Skip to content

Commit c7c4527

Browse files
committed
feat: Doubleclick to start editing instead of pointerdown
1 parent 7ea03fc commit c7c4527

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/renderer/extensions/vueNodes/widgets/composables/useMarkdownWidget.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,7 @@ function addMarkdownWidget(
5353
widget.inputEl = inputEl
5454
widget.options.minNodeSize = [400, 200]
5555

56-
inputEl.addEventListener('pointerdown', (event: PointerEvent) => {
57-
if (event.button !== 0) {
58-
app.canvas.processMouseDown(event)
59-
return
60-
}
61-
if (event.target instanceof HTMLAnchorElement) {
62-
return
63-
}
56+
inputEl.addEventListener('dblclick', () => {
6457
inputEl.classList.add('editing')
6558
setTimeout(() => {
6659
textarea.focus()

0 commit comments

Comments
 (0)