Skip to main content

cursorMovement

Type​

property

Summary​

Sets the mechanism for moving the cursor in fields containing both left-to-right and right-to-left text.

Syntax​

set the cursorMovement of field to <mechanism>

Description​

Use the cursorMovement property to set the mechanism that is to be used for moving the cursor in a field.

The cursorMovement property sets the mechanism that is to be used for moving the cursor in fields containing both left-to-right and right-to-left text.

The "visual" cursor movement mechanism moves the cursor in visual order, i.e pressing left will always move the cursor one position to the left. This is the default cursor movement on OS X.

The "logical" cursor movement moves the cursor to the next character in logical (reading) order when the left arrow is pressed and to the previous logical character when the right arrow is pressed. This is the default cursor movement on Windows.

Setting the cursorMovement property to empty indicates that the engine should use the default behaviour for the platform that it is being run on.

Parameters​

NameTypeDescription

mechanism

enum

The mechanism to be used used for moving the cursor in a field

Examples​

set the cursorMovement of field "example" to "visual"

property: textDirection

Compatibility and Support​

Introduced

LiveCode 7.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?