Skip to content

Commit

Permalink
Dismiss block borders by key press
Browse files Browse the repository at this point in the history
onKeyDown emitted when modifier key, not the case with onKeyPress
  • Loading branch information
aduth committed May 18, 2017
1 parent 935b958 commit 1b0b7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class VisualEditorBlock extends wp.element.Component {
<Slot name="Formatting.Toolbar" />
</div>
}
<div onKeyDown={ this.maybeStartTyping }>
<div onKeyPress={ this.maybeStartTyping }>
<BlockEdit
focus={ focus }
attributes={ block.attributes }
Expand Down

0 comments on commit 1b0b7ff

Please sign in to comment.