forked from MIrrors/bin
Allow other modifier keys to submit the form
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user