use isHotkey for markdown keydown listener
This commit is contained in:
parent
1608b5e52a
commit
d321b9eb6d
@ -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
|
* 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
|
* paragraph should be added above or below it, and the current selection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user