Focus filter input with a hotkey, adjust sizing

This commit is contained in:
Jason Zimdars
2025-10-13 16:24:57 -05:00
parent b49275508d
commit 679b4d2c94
3 changed files with 20 additions and 5 deletions
@@ -8,6 +8,13 @@ export default class extends Controller {
}
}
focus(event) {
if (this.#isClickable && !this.#shouldIgnore(event)) {
event.preventDefault()
this.element.focus()
}
}
#shouldIgnore(event) {
return event.defaultPrevented || event.target.closest("input, textarea, lexxy-editor")
}