Merge pull request #522 from mickaobrien/timeline-enter-keyboard-shortcut-fix
Fix `enter` keyboard shortcut on timeline
This commit is contained in:
commit
044f754d7e
|
@ -209,8 +209,8 @@ function Timeline({
|
||||||
|
|
||||||
const oRef = useHotkeys(['enter', 'o'], () => {
|
const oRef = useHotkeys(['enter', 'o'], () => {
|
||||||
// open active status
|
// open active status
|
||||||
const activeItem = document.activeElement.closest(itemsSelector);
|
const activeItem = document.activeElement;
|
||||||
if (activeItem) {
|
if (activeItem?.matches(itemsSelector)) {
|
||||||
activeItem.click();
|
activeItem.click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue