Version: Smart Feature Phone 3.0

navigator.b2g.virtualCursor

Description#

Supports emulating a cursor in app, which user can control with d-pad.

Interfaces#

interface DOMVirtualCursor {
/**
* Enable virtual cursor on this window
* Throws an exception if no permissions.
*/
[Throws]
void enable();
/**
* Disable virtual cursor on this window
* Throws an exception if no permissions.
*/
[Throws]
void disable();
readonly attribute boolean enabled;
};

Examples#

To turn on cursor:

navigator.b2g.virtualCursor.enable();

To turn off cursor:

navigator.b2g.virtualCursor.disable();