Version: 2019.1
public static bool textFieldHasSelection ;

説明

True if a text field currently has focused and the text in it is selected.