From d321b9eb6d3b84dbe45cb3f09057942ba382ec28 Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Thu, 14 Dec 2017 13:25:13 -0800 Subject: [PATCH] use isHotkey for markdown keydown listener --- .../EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js b/src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js index e799d5bd..1868bd48 100644 --- a/src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js +++ b/src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor/keys.js @@ -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