Commit bc814b2
committed
fix: restore sans-serif for inputs; make Cmd+K work in capture phase
## Font rendering
Pre-sync, the fork had only `pre, code, textarea, input` selectors
using Geist Mono when code/terminal context demanded it, but the recent
sync collapsed all four into a single rule that applied the monospace
stack to *every* <input> in the app. The command palette search, model
picker trait inputs, settings binary/server URL fields, etc. all rendered
in Geist Mono, which is what produced the 'broken font' look.
Narrow the rule back to `pre, code` (and `textarea` in code-focused
contexts inherits naturally). Regular inputs now use the body font
(DM Sans).
## Cmd+K shortcut
The commandPalette.toggle keydown handler in CommandPalette.tsx used
the bubble phase, which means xterm (when terminal has focus) or a
contenteditable composer could swallow Cmd+K before it reached the
window listener. Switch the listener to capture phase — matches
upstream's CTRL+J fix for terminal.toggle (pingdotgg#2113). The project picker
already lives inside the command palette (filesystem browse API +
command-palette project picker from pingdotgg#2024); this restores access to it
via the shortcut.1 parent b0bcd1e commit bc814b2
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 180 | + | |
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
| |||
0 commit comments