fix(ui): Enter on a selectable title opens it even with its words selected
endsTextSelection takes the click event and exempts a keyboard click (detail 0): Enter / Space ends no selection, so a title selected and then tabbed to opened nothing. All three callers (FocusSafeButton, the Plex caption, the video card title) go through it.
This commit is contained in:
@@ -122,7 +122,7 @@ function openInApp(
|
||||
e.preventDefault();
|
||||
// The click that ends selecting the title's words (to copy them) neither plays nor follows the
|
||||
// link (docs/DESIGN.md "Text stays selectable").
|
||||
if (endsTextSelection(e.currentTarget)) return;
|
||||
if (endsTextSelection(e)) return;
|
||||
onOpen(video);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user