Skip to content

feat: implement keyboard shortcuts and help UI modal #28#362

Merged
param20h merged 1 commit into
param20h:devfrom
mohitmeena3883:keyboard-shortcuts
Jun 4, 2026
Merged

feat: implement keyboard shortcuts and help UI modal #28#362
param20h merged 1 commit into
param20h:devfrom
mohitmeena3883:keyboard-shortcuts

Conversation

@mohitmeena3883
Copy link
Copy Markdown
Contributor

@mohitmeena3883 mohitmeena3883 commented Jun 2, 2026

program: gssoc

description


🔗 Related Issue

Closes #28


📄 What does this PR do?

Implemented the requested keyboard shortcuts and accessibility indicators for the chat interface:

  • Ctrl/Cmd + Enter: Sends the currently typed chat message if the input textarea is focused.
  • Esc: Clears the chat text input when active, or closes the shortcuts modal window.
  • Ctrl/Cmd + K: Globally shifts document focus straight to the chat textarea field.
  • Added a floating (HelpCircle) UI toggle button inside the chat panel input container that opens an accessible modal popup detailing all available keyboard configurations.

📁 Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactor / code cleanup
  • 📄 Documentation update
  • 🎨 UI / styling change
  • ⚙️ CI / tooling / config change

🧪 How was this tested?

  • Ran the backend locally (uvicorn app.main:app --reload)
  • Ran the frontend locally (npm run dev inside /frontend)
  • Tested the affected API endpoints manually
  • Added / updated tests

⚠️ Anything to flag for reviewers?

None. The shortcuts use native browser event handling and properly prevent standard browser overrides (like stopping Ctrl+K from opening the browser address bar).


🧼 Self-Review Checklist

  • My branch is based on **dev**, not main
  • I have not added any secrets / API keys
  • I have not modified main branch or any HuggingFace deployment config
  • My code follows the existing style (no unnecessary formatting changes)
  • I have updated relevant docs / comments if needed

@mohitmeena3883 mohitmeena3883 requested a review from param20h as a code owner June 2, 2026 17:27
@param20h param20h merged commit a54af65 into param20h:dev Jun 4, 2026
7 checks passed
@github-actions github-actions Bot added enhancement New feature or improvement frontend Next.js / React / UI related gssoc GirlScript Summer of Code 2026 issue/PR gssoc:approved Approved for GSSoC base points (+50 pts) medium Medium difficulty mentor:param20h Mentor for this PR labels Jun 4, 2026
@param20h param20h added level:intermediate +35 pts and removed enhancement New feature or improvement frontend Next.js / React / UI related medium Medium difficulty gssoc GirlScript Summer of Code 2026 issue/PR gssoc:approved Approved for GSSoC base points (+50 pts) mentor:param20h Mentor for this PR labels Jun 4, 2026
@mohitmeena3883 mohitmeena3883 deleted the keyboard-shortcuts branch June 4, 2026 16:39
@param20h param20h added gssoc GirlScript Summer of Code 2026 issue/PR gssoc:approved Approved for GSSoC base points (+50 pts) quality:exceptional 1.5x multiplier type:feature +10 pts mentor:param20h Mentor for this PR labels Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved for GSSoC base points (+50 pts) gssoc GirlScript Summer of Code 2026 issue/PR level:intermediate +35 pts mentor:param20h Mentor for this PR quality:exceptional 1.5x multiplier type:feature +10 pts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add keyboard shortcuts for common actions

2 participants