Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions apps/web/src/components/layout/GlobalCommandPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export function GlobalCommandPalette({
id: 'create-issue',
category: t('commandPalette.category.workItem', 'Work item'),
label: t('commandPalette.createIssue', 'Create new work item'),
shortcut: 'C',
matchText: t('commandPalette.createIssue.match', 'new issue task'),
icon: <CirclePlus className="size-[15px] shrink-0" strokeWidth={2} />,
run: () => runAndClose(onRequestCreateWorkItem),
Expand All @@ -172,7 +171,6 @@ export function GlobalCommandPalette({
id: 'create-project',
category: t('commandPalette.category.project', 'Project'),
label: t('commandPalette.createProject', 'Go to projects'),
shortcut: 'P',
matchText: t('commandPalette.createProject.match', 'create new project list'),
icon: <FolderKanban className="size-[15px] shrink-0 opacity-90" strokeWidth={2} />,
run: () => runAndClose(() => navigate(`${baseUrl}/projects`)),
Expand Down Expand Up @@ -542,16 +540,6 @@ export function GlobalCommandPalette({
const onInputKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.nativeEvent.isComposing) return;

if (!e.ctrlKey && !e.metaKey && !e.altKey && e.key.length === 1 && query.trim() === '') {
const letter = e.key.toUpperCase();
const hit = filtered.find((c) => c.shortcut?.toUpperCase() === letter);
if (hit) {
e.preventDefault();
hit.run();
return;
}
}

if (e.key === 'ArrowDown') {
e.preventDefault();
moveSelection(1);
Expand Down
Loading