Skip to content

Commit faecef4

Browse files
0HyperCubeKeavon
authored andcommitted
Fix Ctrl+Enter to commit text (#675)
1 parent 3a30cdb commit faecef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/io-managers/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function createInputManager(editor: Editor, container: HTMLElement, dialo
7979
if (e.ctrlKey && e.shiftKey && key === "j") return false;
8080

8181
// Don't redirect tab or enter if not in canvas (to allow navigating elements)
82-
if (!canvasFocused && ["tab", "enter", " ", "arrowdown", "arrowup", "arrowleft", "arrowright"].includes(key.toLowerCase())) return false;
82+
if (!canvasFocused && !targetIsTextField(e.target) && ["tab", "enter", " ", "arrowdown", "arrowup", "arrowleft", "arrowright"].includes(key.toLowerCase())) return false;
8383

8484
// Redirect to the backend
8585
return true;

0 commit comments

Comments
 (0)