Skip to content

Commit 52e015c

Browse files
authored
Merge pull request #72 from aaditagrawal/fix/font-and-project-picker
fix: sans-serif inputs + Cmd+K capture phase
2 parents b0bcd1e + fa82fbc commit 52e015c

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

apps/web/src/components/CommandPalette.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ export function CommandPalette({ children }: { children: ReactNode }) {
171171
event.stopPropagation();
172172
toggleOpen();
173173
};
174-
window.addEventListener("keydown", onKeyDown);
175-
return () => window.removeEventListener("keydown", onKeyDown);
174+
// Capture phase so the shortcut fires even when a descendant (e.g.
175+
// xterm, a contenteditable composer) would otherwise swallow the event.
176+
window.addEventListener("keydown", onKeyDown, true);
177+
return () => window.removeEventListener("keydown", onKeyDown, true);
176178
}, [keybindings, terminalOpen, toggleOpen]);
177179

178180
return (

apps/web/src/components/GitActionsControl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ export default function GitActionsControl({
11211121
<div className="space-y-1">
11221122
<p className="text-xs font-medium">Commit message (optional)</p>
11231123
<Textarea
1124+
className="font-mono"
11241125
value={dialogCommitMessage}
11251126
onChange={(event) => setDialogCommitMessage(event.target.value)}
11261127
placeholder="Leave empty to auto-generate"

apps/web/src/components/ProjectScriptsControl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ export default function ProjectScriptsControl({
448448
<Label htmlFor="script-command">Command</Label>
449449
<Textarea
450450
id="script-command"
451+
className="font-mono"
451452
placeholder="bun test"
452453
value={command}
453454
onChange={(event) => setCommand(event.target.value)}

apps/web/src/index.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ body::after {
177177
}
178178

179179
pre,
180-
code,
181-
textarea,
182-
input {
180+
code {
183181
font-family:
184182
"Geist Mono", "SF Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
185183
}

0 commit comments

Comments
 (0)