Prevents new lines with shift+enter when disableReturn is set to true