From ff60d25f5b046a0d462dfa23489b46c1649542a0 Mon Sep 17 00:00:00 2001 From: Satyapriya Bai Date: Fri, 15 Nov 2024 12:20:22 +0530 Subject: [PATCH] [accessibility-3560073]: [Keyboard Navigation - Cosmos DB Query Copilot - Query Faster with Copilot>Enable Query Advisor]: Keyboard focus order is not logical after selecting the 'Copy code' button. --- src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx index a17f52778..97e0c86b2 100644 --- a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx +++ b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx @@ -75,6 +75,7 @@ export const QueryCopilotPromptbar: React.FC = ({ const inputEdited = useRef(false); const itemRefs = useRef([]); const searchInputRef = useRef(null); + const copyQueryRef= useRef(null); const { openFeedbackModal, hideFeedbackModalForLikedQueries, @@ -132,6 +133,7 @@ export const QueryCopilotPromptbar: React.FC = ({ document.body.removeChild(queryElement); setshowCopyPopup(true); + copyQueryRef.current.focus(); setTimeout(() => { setshowCopyPopup(false); }, 6000); @@ -676,6 +678,7 @@ export const QueryCopilotPromptbar: React.FC = ({ )}