🏡 index : ~doyle/bin.git

author Jordan Johnson-Doyle <jordan@doyle.la> 2019-02-14 1:22:04.0 +00:00:00
committer Jordan Johnson-Doyle <jordan@doyle.la> 2019-02-14 1:22:04.0 +00:00:00
commit
44d3b3358cb8ab61afaafe6652a2b18df13e38ad [patch]
tree
321aa5d8cd2216d081fdc58286a8fc5ca93db424
parent
a49af51edae941aaec957f47e13122d31e4f9864
download
44d3b3358cb8ab61afaafe6652a2b18df13e38ad.tar.gz

Allow other modifier keys to submit the form



Diff

 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();
            }
        });