fix(task): open focused task when pressing enter
This commit is contained in:
parent
65a2814b2a
commit
010dd1ea22
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue