b086f2d75824
fix note editor swallowing letter U by only intercepting Ctrl/Cmd shortcuts for non-letter keys
- time
- 2026-04-29 16:30 UTC · 6 months ago
- machine
- koh2
- parent
- 0520c57b3767
↓ peach-browser-b086f2d7.tar.gzatlas at this save
files changed1 file
src/popup/views/NoteEditor.tsx+4 −0src/popup/views/NoteEditor.tsx+4 −0
@@ -104,6 +104,10 @@104104 105105 function handleKeyDown(e: KeyboardEvent) {106106 const mod = e.metaKey || e.ctrlKey;107+ // Only intercept shortcuts for non-alphanumeric keys to avoid swallowing108+ // letter input. Letter keys (a–z, etc.) must always pass through freely.109+ const isLetterKey = e.key.length === 1;110+ if (isLetterKey) return;107111 if (mod && e.key === "b") { e.preventDefault(); exec("bold"); }108112 if (mod && e.key === "i") { e.preventDefault(); exec("italic"); }109113 if (mod && e.key === "u") { e.preventDefault(); exec("underline"); }