1. Enable TalkBack
2. Navigate to a web page with a text field
3. Enter multiple words of text
4. Now click on some other element so the text field no longer has focus
5. Navigate to the text field so that it has accessibility focus, but do not double-click on it. There should be no flashing insertion point.
6. Swipe up/down in TalkBack to change the granularity to words
7. Swipe left/right to move by word
This doesn't work, but moving by words DOES work if the text box is focused, and it DOES work if you move by words in static text
The underlying issue here is that we had two different implementations of the word / character granularity code:
1. For static text, we update our internal state to keep track of a fake cursor
2. For editable text, we update the actual selection
The purpose of #2 was to allow word/character navigation while editing a text field, but this breaks when you're trying to navigate within a text field that isn't currently focused.
The fix is to make sure we use technique #1 when navigating in a text field that isn't currently focused.
Comment 1 by bugdroid1@chromium.org
, Oct 25 2016