From d95f162b4c37b7cbced0b02f7dcb493c502f6189 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Wed, 2 May 2018 11:13:21 -0400 Subject: [PATCH] Writing Flow: Consider tabbable edge if no adjacent tabbable --- editor/components/writing-flow/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/components/writing-flow/index.js b/editor/components/writing-flow/index.js index 48f7c08ce305db..1537daef1f8933 100644 --- a/editor/components/writing-flow/index.js +++ b/editor/components/writing-flow/index.js @@ -168,7 +168,7 @@ class WritingFlow extends Component { */ isTabbableEdge( target, isReverse ) { const closestTabbable = this.getClosestTabbable( target, isReverse ); - return ! isInSameBlock( target, closestTabbable ); + return ! closestTabbable || ! isInSameBlock( target, closestTabbable ); } onKeyDown( event ) {