We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40d1191 commit 0793684Copy full SHA for 0793684
editor/components/writing-flow/index.js
@@ -224,7 +224,10 @@ class WritingFlow extends Component {
224
225
if ( ( navigateDown && nextBlockUid ) || ( navigateUp && previousBlockUid ) ) {
226
event.preventDefault();
227
- this.moveSelection( navigateUp );
+ const focusedBlockUid = navigateUp ? previousBlockUid : nextBlockUid;
228
+ if ( focusedBlockUid ) {
229
+ this.props.onSelectBlock( focusedBlockUid );
230
+ }
231
}
232
233
// Special case when reaching the end of the blocks (navigate to the next tabbable outside of the writing flow)
0 commit comments