fix(task): open focused task when pressing enter
(cherry picked from commit 010dd1ea22094a8fe6cce46ab9d10292fc87853e)
This commit is contained in:
parent
e290d79c15
commit
f56df8aa34
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user