daily-code
daily-code copied to clipboard
Fix : keypress handler for Cmd+K on macOS and Ctrl+K on Windows
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
- [x] I have performed a self-review of my code
- [x] I assure there is no similar/duplicate pull request regarding same issue
This looks good @ankitpanchaal. You can fix the placeholder also. So that it should only show cmd+k for mac users.
Actually, I forgot it. Let me do this.
can u fix the merge conflicts?
Doing sir 🥹