Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Ctrl+J leaves Search open again; only Keyboard shortcuts gives way to Ask (#175)

christianmat78bdcc977c86
diff --git a/app/src/renderer/src/components/Workspace.tsx b/app/src/renderer/src/components/Workspace.tsx
index 0ce304c7..4967504e 100644
--- a/app/src/renderer/src/components/Workspace.tsx
+++ b/app/src/renderer/src/components/Workspace.tsx
@@ -48,7 +48,7 @@ export function Workspace({ route, meeting, folders, go, back, forward, search,
const ask = (tries = 0) => {
const over = dialogs()
if (over === 'blocked') return
- // Search or Keyboard shortcuts close first; Ask opens once they're gone, so their focus return can't undo it.
+ // Keyboard shortcuts closes first; Ask opens once it's gone, so its focus return can't undo it.
if (over === 'dismiss') {
if (!tries) dismissDialogs()
if (tries < 30) waiting = requestAnimationFrame(() => ask(tries + 1))
diff --git a/app/src/shared/askContext.ts b/app/src/shared/askContext.ts
index 2d1efec0..8e39e0cd 100644
--- a/app/src/shared/askContext.ts
+++ b/app/src/shared/askContext.ts
@@ -22,8 +22,8 @@ export function askDestination(route: string): AskDestination {
return { kind: 'conversation', chips: [] }
}
-/** Dialogs that give way to ⌘J: looking up the shortcut, or searching for it, shouldn't stop it working (#175). */
-const giveWay = new Set(['shortcuts-dialog', 'search'])
+/** Dialogs that give way to ⌘J: looking up the shortcut shouldn't stop it working (#175). Search stays, typing kept. */
+const giveWay = new Set(['shortcuts-dialog'])
/** What ⌘J does over the open dialogs (by test id; Ask's own panel left out): a question or form the person is answering keeps it. */
export function askOverDialogs(dialogs: (string | undefined)[]): 'ask' | 'dismiss' | 'blocked' {
const open = dialogs.filter(d => d !== 'chat-panel')
diff --git a/app/test/askOverDialogs.test.ts b/app/test/askOverDialogs.test.ts
index fa7fd1b2..ad184267 100644
--- a/app/test/askOverDialogs.test.ts
+++ b/app/test/askOverDialogs.test.ts
@@ -6,14 +6,15 @@ it('opens Ask with nothing in the way, or only its own panel', () => {
expect(askOverDialogs(['chat-panel'])).toBe('ask')
})
-it('closes Keyboard shortcuts or Search first, so Ctrl+J still opens Ask (#175)', () => {
+it('closes Keyboard shortcuts first, so Ctrl+J still opens Ask (#175)', () => {
expect(askOverDialogs(['shortcuts-dialog'])).toBe('dismiss')
- expect(askOverDialogs(['search'])).toBe('dismiss')
expect(askOverDialogs(['chat-panel', 'shortcuts-dialog'])).toBe('dismiss')
})
it('leaves a question or form the person is answering alone', () => {
expect(askOverDialogs(['delete-confirm'])).toBe('blocked')
expect(askOverDialogs([undefined])).toBe('blocked')
+ // Search keeps its own ⌘J: it stays open with the typing in place (e2e sidebarMotion, note)
+ expect(askOverDialogs(['search'])).toBe('blocked')
expect(askOverDialogs(['shortcuts-dialog', 'delete-confirm'])).toBe('blocked')
})