Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Index

On this page

KMManager.setGlobeKeyAction()

Summary

The setGlobeKeyAction() method sets an action type for the 'Globe' key.

Syntax

KMManager.setGlobeKeyAction(KeyboardType kbType, int action)

Parameters

kbType
The keyboard type. KEYBOARD_TYPE_INAPP or KEYBOARD_TYPE_SYSTEM.
action
The action type. GLOBE_KEY_ACTION_SHOW_MENU, GLOBE_KEY_ACTION_SWITCH_TO_NEXT_KEYBOARD, GLOBE_KEY_ACTION_ADVANCE_TO_NEXT_SYSTEM_KEYBOARD, or GLOBE_KEY_ACTION_DO_NOTHING.

Description

Use this method to set an action type for the 'Globe' key. By default, the action type is set to GLOBE_KEY_ACTION_SHOW_MENU which displays the keyboard picker menu.

Examples

Example: Using setGlobeKeyAction()

The following script illustrate the use of setGlobeKeyAction():

    // Tapping 'Globe' key will switch to the next keyboard
    KMManager.setGlobeKeyAction(KeyboardType.KEYBOARD_TYPE_SYSTEM, GlobeKeyAction.GLOBE_KEY_ACTION_SWITCH_TO_NEXT_KEYBOARD);

See also