mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-16 05:39:24 +00:00
Deprecate the following obsolete functions and properties: * `keyman.helpURL` * `keyman.util.rgba` * `keyman.util.toFloat` * `keyman.util.toNumber` * `keyman.util.toNzString` Use correct language for code blocks in Keyman Engine for Web documentation. Test-bot: skip
859 B
859 B
| title |
|---|
| insertText (KT) |
Summary
Inserts a text string and optional deadkey into the active output element.
Syntax
keyman.interface.insertText(text, dk);
or
KeymanWeb.KT(text, dk); // Shorthand
Parameters
text- Type:
string - The text to insert.
dk- Type:
numberoptional - The deadkey's id, if one is to be inserted.
Return Value
booleantrueif the operation is successful, otherwisefalse.
Description
This function is designed to allow custom UI elements or custom OSK displays (as for the EuroLatin keyboard) to directly insert input into a control without losing the current input state due to loss of focus for the control. It is safe for use outside of keyboard code.