Add create cards with keyboard

CTRL+ENTER to create
CTRL+SHIFT+ENTER to create and add another
This commit is contained in:
Jorge Manrubia
2025-11-11 12:38:23 +01:00
parent 83c3f19c12
commit 0f664a8ce1
2 changed files with 8 additions and 3 deletions
@@ -6,6 +6,10 @@ export default class extends Controller {
async click() {
await nextFrame()
this.clickableTarget.click()
this.#clickable.click()
}
get #clickable() {
return this.hasClickableTarget ? this.clickableTarget : this.element
}
}