feat: COD-153 add command-k session palette

This commit is contained in:
Saqeb Akhter
2026-07-09 11:08:17 -04:00
committed by Aamer Akhter
parent 48fd2da6ce
commit ad25e234f4
8 changed files with 798 additions and 12 deletions
+8
View File
@@ -804,11 +804,19 @@ class CodemanApp {
// Don't intercept keys during CJK IME composition
if (e.isComposing || e.keyCode === 229) return;
if (this.shouldOpenCommandPaletteFromShortcut?.(e)) {
e.preventDefault();
this.openCommandPalette();
return;
}
// Escape - close panels and modals (different logic: no preventDefault, no return)
if (e.key === 'Escape') {
this.closeAllPanels();
this.closeHelp();
if (this.attachmentHistoryDrawerOpen) this.closeAttachmentHistory();
this.closeSessionManager();
this.closeCommandPalette?.();
}
// Option/Alt session navigation uses physical key CODES, not e.key, so macOS