mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
InlineTextArea: stop event propagation on 'esc'
This commit is contained in:
@@ -47,6 +47,7 @@ export function InlineTextarea(props: {
|
||||
}
|
||||
} else if (e.key === 'Escape') {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
props.onCancel?.();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user