prevent event from being used to enter a newline into editor

this fixes https://github.com/zaggino/brackets-git/issues/385
cc @TomMalbran @peterflynn