Allow other modifier keys to submit the form
This commit is contained in:
parent
a49af51eda
commit
44d3b3358c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue