From 266f6eeb4e03410ab02a8b63791e02861e29260d Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Fri, 30 Jan 2026 14:00:53 -0600 Subject: [PATCH] Made ctrl shortcut go straight to typing. --- src/components/Navigation.tsx | 2 +- src/components/QuickEntry.tsx | 18 +++++++++++++++--- src/components/TaskCard.tsx | 12 +++++------- src/components/TaskDetail.tsx | 2 +- src/views/MatrixView.tsx | 2 +- src/views/PriorityView.tsx | 2 +- 6 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index 07c665c..0e80735 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -12,7 +12,7 @@ interface NavItem { const navItems: NavItem[] = [ { icon: ListTodo, label: "Focus", view: "critical" }, { icon: Clock, label: "Time", view: "urgency" }, - { icon: ArrowUpCircle, label: "Impact", view: "priority" }, + { icon: ArrowUpCircle, label: "Priority", view: "priority" }, { icon: LayoutDashboard, label: "Matrix", view: "matrix" }, { icon: Settings, label: "Settings", view: "settings" }, ]; diff --git a/src/components/QuickEntry.tsx b/src/components/QuickEntry.tsx index f62703e..c9cee78 100644 --- a/src/components/QuickEntry.tsx +++ b/src/components/QuickEntry.tsx @@ -32,11 +32,23 @@ export const QuickEntry: Component = () => { // Explicit date string for the input (YYYY-MM-DDTHH:mm) const [dateString, setDateString] = createSignal(""); + let inputRef: HTMLInputElement | undefined; + + createEffect(() => { + if (isOpen()) { + // Slight delay to ensure DOM is ready and animations don't interfere + setTimeout(() => inputRef?.focus(), 50); + } + }); const handleKeyDown = (e: KeyboardEvent) => { if ((e.metaKey || e.ctrlKey) && e.key === "k") { e.preventDefault(); - setIsOpen(true); + if (isOpen()) { + inputRef?.focus(); + } else { + setIsOpen(true); + } } if (e.key === "Escape") { setIsOpen(false); @@ -142,7 +154,7 @@ export const QuickEntry: Component = () => { setInput(e.currentTarget.value)} onKeyDown={(e) => e.key === "Enter" && parseAndAdd()} @@ -154,7 +166,7 @@ export const QuickEntry: Component = () => {
- + val && updatePriority(val)} diff --git a/src/views/MatrixView.tsx b/src/views/MatrixView.tsx index 59a9453..5236f04 100644 --- a/src/views/MatrixView.tsx +++ b/src/views/MatrixView.tsx @@ -12,7 +12,7 @@ export const MatrixView: Component = () => {

Strategy Matrix

-

Urgency vs Impact mapping.

+

Urgency vs Priority mapping.

diff --git a/src/views/PriorityView.tsx b/src/views/PriorityView.tsx index 06f951a..7b9c81e 100644 --- a/src/views/PriorityView.tsx +++ b/src/views/PriorityView.tsx @@ -16,7 +16,7 @@ export const PriorityView: Component = () => { return (
-

Impact

+

Priority

Your tasks ordered by priority.