Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: escape key works from inputs, move completed item to DONE.md

Adam Eivyc2b3f6d79d3a
diff --git a/DONE.md b/DONE.md
index 1dcecd80bb..c1045f64e3 100644
--- a/DONE.md
+++ b/DONE.md
@@ -4,6 +4,12 @@ Archive of completed work. For active roadmap, see [PLAN.md](./PLAN.md). For pro
---
+## 2026-03-20
+
+- **Keyboard Shortcuts Help Modal** — Press `?` to show all keyboard shortcuts; global overlay with section grouping, accessible dialog
+
+---
+
## 2026-03-18
- Fixed PromptManager.jsx fetch calls — response.ok checks now present on all endpoints
diff --git a/PLAN.md b/PLAN.md
index 03ae5e773b..0d354dcb01 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -12,7 +12,6 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [DONE.md]
## Backlog
-- [x] **Keyboard Shortcuts Help Modal** — Press `?` to show all keyboard shortcuts; global overlay with section grouping, accessible dialog
- [ ] **God file decomposition** — Split cos.js, subAgentSpawner.js, digital-twin.js, routes/scaffold.js, routes/cos.js, client/api.js into focused modules; resolve circular dependency
- [ ] **Test coverage** — Critical gaps: cos.js, cosRunnerClient.js, agentActionExecutor.js (~29% service, ~12% route coverage)
- [ ] **M50 P9**: CoS Automation & Rules — Automated email classification, rule-based pre-filtering, email-to-task pipeline
diff --git a/client/src/hooks/useKeyboardHelp.js b/client/src/hooks/useKeyboardHelp.js
index 2325fe1eb9..93f0503ec1 100644
--- a/client/src/hooks/useKeyboardHelp.js
+++ b/client/src/hooks/useKeyboardHelp.js
@@ -5,7 +5,13 @@ export function useKeyboardHelp() {
useEffect(() => {
const handler = (e) => {
- // Don't trigger when typing in inputs/textareas/contenteditable
+ // Escape always closes, even from inputs/textareas
+ if (e.key === 'Escape') {
+ setOpen(false);
+ return;
+ }
+
+ // Don't trigger shortcuts when typing in inputs/textareas/contenteditable
const tag = e.target.tagName;
if (tag === 'INPUT' || tag === 'TEXTAREA' || e.target.isContentEditable) return;
// Don't trigger with modifier keys
@@ -14,8 +20,6 @@ export function useKeyboardHelp() {
if (e.key === '?' && !e.repeat) {
e.preventDefault();
setOpen(prev => !prev);
- } else if (e.key === 'Escape') {
- setOpen(false);
}
};
document.addEventListener('keydown', handler);