From e9a308496a2aa11f98aa5b63c1fa77cbc89e02fd Mon Sep 17 00:00:00 2001
From: Damyan Ivanov <dmn@debian.org>
Date: Sun, 6 Mar 2022 20:10:40 +0000
Subject: [PATCH] submit with Enter in list editor dialog too

---
 public/javascripts/lsl.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/public/javascripts/lsl.js b/public/javascripts/lsl.js
index 3e66db6..92e0897 100644
--- a/public/javascripts/lsl.js
+++ b/public/javascripts/lsl.js
@@ -92,6 +92,14 @@ function edit_list() {
                 .append(
                     $('<legend>').text('List name'),
                     $('<input type="text" size="10">')
+                    .on('keypress', (ev) => {
+                        if (13 == ev.keyCode) {
+                            save_list(d);
+                            return false;
+                        }
+
+                        return true;
+                    })
                     .val(selected_list.data('lsl-name'))
                 )
         );
-- 
2.39.5