-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add feature to search with Ctrl + k #1205
Conversation
@manuarora700 asked for this feature in your resume roasting video |
Can u implement this beautiful library? https://cmdk.paco.me/ |
Other than that pr is good |
Shadcn commandk internally uses cmdk package. Might as well use that
…On Sun, 15 Sep 2024 at 12:08 AM, Sargam ***@***.***> wrote:
Other than that pr is good
—
Reply to this email directly, view it on GitHub
<#1205 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFRSXFKMBQURMXVJZJSHQ2TZWR7B3AVCNFSM6AAAAABODBC7IOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJRGA4TQNJYHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@devsargam added shadcn commandk component |
@devsargam any other feedback? |
Let me check this pr by eod |
|
lol sorry sir |
src/components/search/SearchBar.tsx
Outdated
const handleKeyPress = (event: KeyboardEvent) => { | ||
switch (event.code) { | ||
case 'KeyK': | ||
if (event.ctrlKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are just checking with ctrl key but as the name suggests it should also support ⌘K
on mac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably forgot to add package.json
Added cmd K for MacOs also |
can u flix conflicts @AuenKr? |
@devsargam resolves the conflict. |
@devsargam, any other change required? |
Let me rereview it |
@devsargam ?? |
yeah yeah it's all good #1270 just want to see what's this got |
Thank u |
PR Fixes:
Before:
ctrlBefore.mp4
After:
2024-09-12_16-53-59.mp4
Checklist before requesting a review