Skip to content

Conversation

@Abhijay007
Copy link
Collaborator

@Abhijay007 Abhijay007 commented Jan 3, 2026

closes #5540

PR Description

This PR adds platform-specific keyboard shortcut display logic to the desktop UI, detecting whether the user is on Mac or Windows/Linux and showing the appropriate modifier keys (⌘ for Mac, Ctrl for Windows/Linux).

Changes made :

  • Created a utility module for platform detection and keyboard shortcut text generation
  • Updated UI text across multiple views to dynamically display the correct keyboard shortcuts based on the user's platform
  • Replaced hardcoded shortcut text with function calls for navigation and search shortcuts

Type of Change

  • Fix

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested on Windows on the desktop UI

Screenshots/Demos (for UX changes)

Before: (Windows)

image

After: (Windows)

image

Copilot AI review requested due to automatic review settings January 3, 2026 17:31
@Abhijay007 Abhijay007 marked this pull request as draft January 3, 2026 17:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds platform-specific keyboard shortcut display logic to the desktop UI, detecting whether the user is on Mac or Windows/Linux and showing the appropriate modifier keys (⌘ for Mac, Ctrl for Windows/Linux).

  • Created a utility module for platform detection and keyboard shortcut text generation
  • Updated UI text across multiple views to dynamically display the correct keyboard shortcuts based on the user's platform
  • Replaced hardcoded shortcut text with function calls for navigation and search shortcuts

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui/desktop/src/utils/keyboardShortcuts.ts New utility module with platform detection and functions to generate platform-specific shortcut text
ui/desktop/src/components/sessions/SessionListView.tsx Uses dynamic search shortcut text instead of hardcoded "⌘F/Ctrl+F"
ui/desktop/src/components/recipes/RecipesView.tsx Uses dynamic search shortcut text instead of hardcoded "⌘F/Ctrl+F"
ui/desktop/src/components/extensions/ExtensionsView.tsx Uses dynamic search shortcut text instead of hardcoded "⌘F/Ctrl+F"
ui/desktop/src/components/ChatInput.tsx Uses dynamic navigation shortcut text instead of hardcoded "⌘↑/⌘↓"

@Abhijay007 Abhijay007 force-pushed the fix/KeyboardShortcuts branch from 5212095 to 7c213a5 Compare January 5, 2026 16:36
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
@Abhijay007 Abhijay007 force-pushed the fix/KeyboardShortcuts branch from 7c213a5 to af1df9f Compare January 5, 2026 16:38
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
@Abhijay007 Abhijay007 marked this pull request as ready for review January 5, 2026 16:50
Copilot AI review requested due to automatic review settings January 5, 2026 16:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@alexhancock
Copy link
Collaborator

@Abhijay007 rebase and then LGTM to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust copy for Windows where it mentions mac specific things

2 participants