Skip to content

Commit

Permalink
Avoid navigating outside the editor using the arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 25, 2017
1 parent b935bbf commit 6065dcd
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 @@ -262,7 +262,7 @@ class VisualEditorBlock extends Component {
'*[tabindex]',
'textarea',
'input',
].join( ',' );
].map( ( selector ) => `.editor-visual-editor ${ selector }` ).join( ',' );

if ( moveUp || moveDown ) {
const selection = window.getSelection();
Expand Down

0 comments on commit 6065dcd

Please sign in to comment.