Keyboard Support

Contact and Search Homepage

Header bottom

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


On this page



The getSpacebarText() method returns the current text display pattern for the spacebar.


KMManager.SpacebarText KMManager.getSpacebarText()


The current text display pattern for the spacebar, one of:

  • LANGUAGE - the language name for the keyboard
  • KEYBOARD - the keyboard name
  • LANGUAGE_KEYBOARD - both the language name and the keyboard name, separated by hyphen
  • BLANK - no text to be displayed


The default text display pattern is LANGUAGE_KEYBOARD. The text shown on the keyboard may be overridden on a per-keyboard basis with the displayName parameter of the setKeyboard() function.

Example: Using getSpacebarText()

The following script illustrates the use of getSpacebarText():

// get the current spacebar text mode
KMManager.SpacebarText mode = KMManager.getSpacebarText();

See also