use isHotkey for markdown keydown listener

This commit is contained in:
Shawn Erquhart 2017-12-14 13:25:13 -08:00
parent 1608b5e52a
commit d321b9eb6d

View File

@ -11,7 +11,7 @@ function onKeyDown(event, change) {
});
};
if (event.key === 'Enter') {
if (isHotkey('Enter', event)) {
/**
* If "Enter" is pressed while a single void block is selected, a new
* paragraph should be added above or below it, and the current selection