Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 19.0Version 18.0 (current version)

Index

On this page

You are viewing an incomplete pre-release version of this documentation. Click here to open the current version, 18.0.

KMManager.closeParentAppOnShowKeyboardPicker()


Summary

The closeParentAppOnShowKeyboardPicker() method restores the default behavior of the keyboard picker menu closing the parent app.

Syntax

KMManager.closeParentAppOnShowKeyboardPicker()

Description

Normally, launching the KeyboardPickerActivity from a system keyboard closes the parent app.

(The keyboard picker becomes the root of the activity stack.)

Calling this function restores this default behavior.

Examples

Example: Using closeParentAppOnShowKeyboardPicker()

The following script illustrates the use of closeParentAppOnShowKeyboardPicker():

  @Override
  protected void onResume() {
    super.onResume();
    KMManager.onResume();
    KMManager.hideSystemKeyboard();

    // Reset keyboard picker Activity Task flag
    KMManager.closeParentAppOnShowKeyboardPicker();

See also