fix(task): open focused task when pressing enter

(cherry picked from commit 010dd1ea22)
This commit is contained in:
kolaente
2024-09-20 14:27:34 +02:00
parent e290d79c15
commit f56df8aa34
@@ -352,7 +352,7 @@ function hasTextSelected() {
function openTaskDetail(event: MouseEvent | KeyboardEvent) {
if (event.target instanceof HTMLElement) {
const isInteractiveElement = event.target.closest('a, button, input, .favorite, [role="button"]')
const isInteractiveElement = event.target.closest('a, button, .favorite, [role="button"]')
if (isInteractiveElement || hasTextSelected()) {
return
}