fix text box editing and zoom shortcuts

This commit is contained in:
2026-07-07 10:13:55 -05:00
parent 8ddfe1b3e1
commit a55a7a9170
2 changed files with 41 additions and 18 deletions
+5
View File
@@ -186,6 +186,11 @@ async function promptText({ title, label = 'Value', value = '', placeholder = ''
});
field.addEventListener('keydown', (e) => {
if (multiline && e.key === 'Enter') {
// Let the textarea keep the Enter key for a new line.
e.stopPropagation();
return;
}
if (!multiline && e.key === 'Enter') {
e.preventDefault();
close();