Fix shift+enter leaving a new line in input
This commit is contained in:
parent
8c22c92dee
commit
5949c7e35c
@ -31,7 +31,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
ingredientFields[2].addEventListener('keyup', e => {if (e.key === 'Enter') addIngredient()} )
|
||||
|
||||
// Steps
|
||||
stepInput.addEventListener('keydown', e => { if (e.key === 'Enter') addStep() } )
|
||||
stepInput.addEventListener('keyup', e => { if (e.key === 'Enter' && e.shiftKey) addStep() } )
|
||||
});
|
||||
|
||||
// - ADD
|
||||
|
Loading…
x
Reference in New Issue
Block a user