Packagefeathers.utils.text
Classpublic class TextInputNavigation
InheritanceTextInputNavigation Inheritance Object

Functions for navigating text inputs with the keyboard.



Public Methods
 MethodDefined By
  
findNextWordStartIndex(text:String, selectionEndIndex:int):int
[static] Finds the start index of the next word that starts after the selection.
TextInputNavigation
  
findPreviousWordStartIndex(text:String, selectionStartIndex:int):int
[static] Finds the start index of the word that starts before the selection.
TextInputNavigation
Method Detail
findNextWordStartIndex()method
public static function findNextWordStartIndex(text:String, selectionEndIndex:int):int

Finds the start index of the next word that starts after the selection.

Parameters

text:String
 
selectionEndIndex:int

Returns
int
findPreviousWordStartIndex()method 
public static function findPreviousWordStartIndex(text:String, selectionStartIndex:int):int

Finds the start index of the word that starts before the selection.

Parameters

text:String
 
selectionStartIndex:int

Returns
int