Skip to content

Commit db8bd03

Browse files
committed
fix(mdviewer): allow typing in slash menu filter and forward F-keys to Phoenix
1 parent 31759e9 commit db8bd03

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src-mdviewer/src/components/editor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,11 @@ function enterEditMode(content) {
12941294
const mod = isModKey(e);
12951295

12961296
if (isSlashMenuVisible() || isLangPickerDropdownOpen()) {
1297-
e.preventDefault();
1297+
// Let regular character input through for slash menu filtering
1298+
// Only block modifier shortcuts that could interfere
1299+
if (isModKey(e)) {
1300+
e.preventDefault();
1301+
}
12981302
return;
12991303
}
13001304

0 commit comments

Comments
 (0)