mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Fix Ctrl+Enter to commit text (#675)
This commit is contained in:
parent
3a30cdbb70
commit
faecef40af
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export function createInputManager(editor: Editor, container: HTMLElement, dialo
|
|||
if (e.ctrlKey && e.shiftKey && key === "j") return false;
|
||||
|
||||
// Don't redirect tab or enter if not in canvas (to allow navigating elements)
|
||||
if (!canvasFocused && ["tab", "enter", " ", "arrowdown", "arrowup", "arrowleft", "arrowright"].includes(key.toLowerCase())) return false;
|
||||
if (!canvasFocused && !targetIsTextField(e.target) && ["tab", "enter", " ", "arrowdown", "arrowup", "arrowleft", "arrowright"].includes(key.toLowerCase())) return false;
|
||||
|
||||
// Redirect to the backend
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue