Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0Version 17.0 (current version)Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0Version 2.0

Index

On this page

You are viewing an old version of this documentation. Click here to open the current version, 17.0.

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