From: Damyan Ivanov Date: Sun, 6 Mar 2022 20:10:40 +0000 (+0000) Subject: submit with Enter in list editor dialog too X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=e9a308496a2aa11f98aa5b63c1fa77cbc89e02fd;p=lsl.git submit with Enter in list editor dialog too --- 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( $('').text('List name'), $('') + .on('keypress', (ev) => { + if (13 == ev.keyCode) { + save_list(d); + return false; + } + + return true; + }) .val(selected_list.data('lsl-name')) ) );