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
orKEYBOARD_TYPE_SYSTEM
. action
- The action type.
GLOBE_KEY_ACTION_SHOW_MENU
,GLOBE_KEY_ACTION_SWITCH_TO_NEXT_KEYBOARD
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.
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);