-
Notifications
You must be signed in to change notification settings - Fork 51
Add event shortcuts (n, m) to Day view command palette #1389
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: victor-enogwe <23452630+victor-enogwe@users.noreply.github.com>
Co-authored-by: victor-enogwe <23452630+victor-enogwe@users.noreply.github.com>
n and m| id: "create-event", | ||
| children: "Create event [n]", | ||
| icon: "PlusIcon", | ||
| onClick: onEventTargetVisibility(() => openEventFormCreateEvent()), |
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.
no need to use onEventTargetVisibility here.
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.
Fixed in 3258a57. Removed the wrapper since these functions dispatch events directly to DOM elements.
| id: "edit-event", | ||
| children: "Edit event [m]", | ||
| icon: "PencilSquareIcon", | ||
| onClick: onEventTargetVisibility(() => openEventFormEditEvent()), |
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.
same as above, no need to use onEventTargetVisibility here.
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.
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.
Fixed in 3258a57. Both event shortcuts now use direct onClick handlers.
Co-authored-by: victor-enogwe <23452630+victor-enogwe@users.noreply.github.com>
Plan to Add Missing Shortcuts to Command Palette
Summary
Successfully added the missing "Create event [n]" and "Edit event [m]" shortcuts to the Day view command palette. The shortcuts were already implemented in the keyboard handlers but were not visible in the command palette UI. This ensures users can discover and use these shortcuts through Cmd+K.
Changes
DayCmdPalette.tsxto add two new menu items with direct onClick handlersDayCmdPalette.test.tsxwith tests for the new itemsonEventTargetVisibilitywrapper based on code review feedbackOriginal prompt
n,m#1356💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.