Skip to content

Commit

Permalink
[WEB-655] chore: peek overview dropdowns keyboard navigation improvem…
Browse files Browse the repository at this point in the history
…ent (#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>
  • Loading branch information
anmolsinghbhatia and aaryan610 committed Mar 6, 2024
1 parent c08d698 commit 66f2492
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/components/issues/peek-overview/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 66f2492

Please sign in to comment.