In my opinion one would need to be able to detect that the SHIFT
and ENTER
keys were pressed. However, the INPUT
event does not appear to contain that data. If you can use an event listener that contains data about all keys being used for a single event, then you may be able to use something like event.preventDefault()
in the callback. I do not know what the context of all your code is, so I do not know if it is feasible to use other events, specifically keypress
.
I also cannot reproduce the issue you are describing. You may be using a plugin that causes the double-spacing issue.