Merge pull request #522 from mickaobrien/timeline-enter-keyboard-shortcut-fix

Fix `enter` keyboard shortcut on timeline
pull/525/head
Chee Aun 2024-04-28 08:29:47 +08:00 zatwierdzone przez GitHub
commit 044f754d7e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -209,8 +209,8 @@ function Timeline({
const oRef = useHotkeys(['enter', 'o'], () => {
// open active status
const activeItem = document.activeElement.closest(itemsSelector);
if (activeItem) {
const activeItem = document.activeElement;
if (activeItem?.matches(itemsSelector)) {
activeItem.click();
}
});