主题
TextSelectionChangeCause 继承自: Enum
Indicates what triggered the change in selected text.
枚举值
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
UNKNOWN | — | 'unknown' | The cause of the selection change is unknown or could not be determined. |
TAP | — | 'tap' | The user tapped on the text and that caused the selection (or the location of the cursor) to change. |
DOUBLE_TAP | — | 'doubleTap' | The user tapped twice in quick succession on the text and that caused the selection (or the location of the cursor) to change. |
LONG_PRESS | — | 'longPress' | The user long-pressed the text and that caused the selection (or the location of the cursor) to change. |
FORCE_PRESS | — | 'forcePress' | The user force-pressed the text and that caused the selection (or the location of the cursor) to change. |
KEYBOARD | — | 'keyboard' | The user used the keyboard to change the selection or the location of the cursor. Keyboard-triggered selection changes may be caused by the IME as well as by accessibility tools (e.g. TalkBack on Android). |
TOOLBAR | — | 'toolbar' | The user used the selection toolbar to change the selection or the location of the cursor. An example is when the user taps on select all in the tool bar. |
DRAG | — | 'drag' | The user used the mouse to change the selection by dragging over a piece of text. |
SCRIBBLE | — | 'scribble' | The user used iPadOS 14+ Scribble to change the selection. |