mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
852 B
852 B
| title |
|---|
| KMManager.shouldAllowSetKeyboard() |
Summary
The shouldAllowSetKeyboard() method returns whether Keyman Engine
allows setting a keyboard other than the default keyboard.
Syntax
KMManager.shouldAllowSetKeyboard()
Returns
Returns true if Keyman Engine allows setting a keyboard, false
otherwise.
Description
Use this method to check if Keyman Engine allows setting a keyboard other than the default keyboard.
Examples
Example: Using shouldAllowSetKeyboard()
The following script illustrate the use of shouldAllowSetKeyboard():
if (KMManager.shouldAllowSetKeyboard()) {
// setting a keyboard is allowed
}
else {
// setting a keyboard is not allowed
}