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_INAPPorKEYBOARD_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,GLOBE_KEY_ACTION_SHOW_SYSTEM_KEYBOARDS, orGLOBE_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.
The action GLOBE_KEY_ACTION_SHOW_SYSTEM_KEYBOARDS brings up the Android input method picker and
can only be set for KEYBOARD_TYPE_SYSTEM.
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);


