this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Fix `enter` keyboard shortcut on timeline

authored by

Chee Aun and committed by
GitHub
044f754d 7376cb1e

+2 -2
+2 -2
src/components/timeline.jsx
··· 209 209 210 210 const oRef = useHotkeys(['enter', 'o'], () => { 211 211 // open active status 212 - const activeItem = document.activeElement.closest(itemsSelector); 213 - if (activeItem) { 212 + const activeItem = document.activeElement; 213 + if (activeItem?.matches(itemsSelector)) { 214 214 activeItem.click(); 215 215 } 216 216 });