Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : keypress handler for Cmd+K on macOS and Ctrl+K on Windows #421

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ankitpanchaal
Copy link

@ankitpanchaal ankitpanchaal commented May 15, 2024

PR Fixes:

  • 1 Ensure the dialog opens with Cmd+K on macOS and Ctrl+K on Windows.
    This change checks for both metaKey and ctrlKey to provide cross-platform
    support. Additionally, the keypress handler has been optimized for better
    readability and maintainability. Mac users press Cmd+K only to open a search.

Resolves #[Issue Number if there]

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

@piyushmishra1416
Copy link

This looks good @ankitpanchaal. You can fix the placeholder also. So that it should only show cmd+k for mac users.
image

@ankitpanchaal
Copy link
Author

Actually, I forgot it. Let me do this.

@hkirat
Copy link
Collaborator

hkirat commented May 17, 2024

can u fix the merge conflicts?

@ankitpanchaal
Copy link
Author

Doing sir 🥹

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.

None yet

3 participants