diff --git a/src/component-library/features/search/DIDSearchPanel.tsx b/src/component-library/features/search/DIDSearchPanel.tsx index f754fd1a7..9c7c096fa 100644 --- a/src/component-library/features/search/DIDSearchPanel.tsx +++ b/src/component-library/features/search/DIDSearchPanel.tsx @@ -96,6 +96,18 @@ export const DIDSearchPanel = (props: SearchPanelProps) => { props.stopStreaming(); }; + const onScopeArrowDown = (event: React.KeyboardEvent) => { + if (event.key === 'ArrowRight') { + nameInputRef.current?.focus(); + } + }; + + const onNameArrowDown = (event: React.KeyboardEvent) => { + if (event.key === 'ArrowLeft') { + scopeInputRef.current?.focus(); + } + }; + return (
@@ -121,6 +133,7 @@ export const DIDSearchPanel = (props: SearchPanelProps) => { setScope(event.target.value); }} onEnterKey={onSearch} + onKeyDown={onScopeArrowDown} /> : { setName(event.target.value); }} onEnterKey={onSearch} + onKeyDown={onNameArrowDown} />