From 44d3b3358cb8ab61afaafe6652a2b18df13e38ad Mon Sep 17 00:00:00 2001 From: Jordan Johnson-Doyle Date: Thu, 14 Feb 2019 01:22:04 +0000 Subject: [PATCH] Allow other modifier keys to submit the form --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index f7bff1b..90fd2e3 100644 --- a/templates/index.html +++ a/templates/index.html @@ -53,7 +53,7 @@ onInput(); document.body.addEventListener('keydown', (e) => { - if (e.keyCode === 13 && e.metaKey) { + if (e.key === 'Enter' && (e.metaKey || e.ctrlKey || e.altKey)) { form.submit(); } }); -- rgit 0.1.3