You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Enhancement] Restore Keyboard Focus to Chat Input After Closing Keyboard Shortcuts Modal #821
Is your feature request related to a problem? Please describe.
Currently, when the Keyboard Shortcuts help modal is closed (either by clicking the close button, clicking outside the modal, or pressing Esc), the keyboard focus is not returned to the chat input. Keyboard users need to manually click the input field before they can continue typing.
Describe the solution you'd like
After the shortcuts modal is closed, automatically restore focus to the chat input using the existing textareaRef.
Example:
textareaRef.current?.focus();
This should work regardless of how the modal is dismissed:
Close button
Clicking outside the modal
Pressing Esc
Benefits
Improves keyboard accessibility.
Creates a smoother chat experience.
Lets users continue typing immediately after closing the modal.
Follows common accessibility and focus management practices.
Describe alternatives you've considered
Users can manually click the chat input after closing the modal, but this adds unnecessary interaction and interrupts keyboard-based workflows.
Affected File
frontend/src/components/chat/ChatPanel.tsx
Additional Context
This change is small, backward-compatible, and only improves focus management without affecting existing chat functionality.
changed the title [-][Enhancement] Close Export Menu After Successful Export[/-][+][Enhancement] Restore Keyboard Focus to Chat Input After Closing Keyboard Shortcuts Modal[/+]on Jul 9, 2026
Activity
github-actions commentedon Jul 9, 2026
Hi @kareena0229! 👋
Thanks for opening this issue! We are thrilled to have you contribute to PDF-Assistant-RAG for GSSoC 2026.
📌 Before you start:
devand notmain.Happy Coding! 🚀
kareena0229 commentedon Jul 9, 2026
/assign GSSoC
I would like to work on this issue assign it to me. @param20h
[-][Enhancement] Close Export Menu After Successful Export[/-][+][Enhancement] Restore Keyboard Focus to Chat Input After Closing Keyboard Shortcuts Modal[/+]kareena0229 commentedon Jul 9, 2026
PR #823 supposed to close this issue @param20h do Review