Skip to content

Commit e5f4dd3

Browse files
committed
fix enter key in text input in image editor
Signed-off-by: Simon L <szaimen@e.mail.de>
1 parent 9fb93ea commit e5f4dd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ImageEditor.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ export default {
207207
208208
// Key Handlers, override default Viewer arrow and escape key
209209
handleKeydown(event) {
210-
event.stopImmediatePropagation()
210+
// Enter needs to be reached through as otherwise saving text does not work
211+
if (event.key !== 'Enter') {
212+
event.stopImmediatePropagation()
213+
}
211214
// escape key
212215
if (event.key === 'Escape') {
213216
// Since we cannot call the closeMethod and know if there

0 commit comments

Comments
 (0)