Update a11y word forward/back enum names (#8073)

This updates the FlutterSemanticsAction enumerator identifiers for the
'move cursor forward/back one word' actions (added in
flutter/engine#8033) for consistency with the 'move cusor forward/back
on character' identifiers.

ABI compatibility is unaffected, but this with require the following
change in any embedder making use of these fields:

Rename:
    kFlutterSemanticsActionMoveCursorForwardByWordIndex
to:
    kFlutterSemanticsActionMoveCursorForwardByWord

Rename:
    kFlutterSemanticsActionMoveCursorBackwardByWordIndex
to:
    kFlutterSemanticsActionMoveCursorBackwardByWord
This commit is contained in:
Chris Bracken
2019-03-07 16:46:44 -08:00
committed by GitHub
parent b5f59ed89d
commit a48cd16e07
+2 -2
View File
@@ -98,9 +98,9 @@ typedef enum {
// A request that the node should be dismissed.
kFlutterSemanticsActionDismiss = 1 << 18,
// Move the cursor forward by one word.
kFlutterSemanticsActionMoveCursorForwardByWordIndex = 1 << 19,
kFlutterSemanticsActionMoveCursorForwardByWord = 1 << 19,
// Move the cursor backward by one word.
kFlutterSemanticsActionMoveCursorBackwardByWordIndex = 1 << 20,
kFlutterSemanticsActionMoveCursorBackwardByWord = 1 << 20,
} FlutterSemanticsAction;
// The set of properties that may be associated with a semantics node.