1
0

fix(task): open focused task when pressing enter

(cherry picked from commit 010dd1ea22094a8fe6cce46ab9d10292fc87853e)
This commit is contained in:
kolaente 2024-09-19 12:50:21 +02:00
parent e290d79c15
commit f56df8aa34
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -352,7 +352,7 @@ function hasTextSelected() {
function openTaskDetail(event: MouseEvent | KeyboardEvent) { function openTaskDetail(event: MouseEvent | KeyboardEvent) {
if (event.target instanceof HTMLElement) { 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()) { if (isInteractiveElement || hasTextSelected()) {
return return
} }