forked from github/plane
[WEB-655] chore: peek overview dropdowns keyboard navigation improvement (#3888)
* fix: enums export in the types package * chore: remove NestedKeyOf type * chore: peek overview keyboard accessibility improvement --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
parent
c08d6987d0
commit
66f2492e60
@ -58,7 +58,9 @@ export const IssueView: FC<IIssueView> = observer((props) => {
|
||||
}
|
||||
});
|
||||
const handleKeyDown = () => {
|
||||
if (!isAnyModalOpen) {
|
||||
const slashCommandDropdownElement = document.querySelector("#slash-command");
|
||||
const dropdownElement = document.activeElement?.tagName === "INPUT";
|
||||
if (!isAnyModalOpen && !slashCommandDropdownElement && !dropdownElement) {
|
||||
removeRoutePeekId();
|
||||
const issueElement = document.getElementById(`issue-${issueId}`);
|
||||
if (issueElement) issueElement?.focus();
|
||||
|
Loading…
Reference in New Issue
Block a user