Outputs the specified string to an element, overwriting
nd characters before the caret.
keyman.interface.output(nd, Pelem, str);
KeymanWeb.KO(nd, Pelem, str); // Shorthand
- The number of characters to overwrite. Passively ignores values less than zero.
- The input element to receive the output text.
- The output text to write to the input element.
This is a core element of keyboard input management within KeymanWeb, typically called automatically during keystroke processing events. For comparison with Developer 'rules' from keyboard source code, in the rule
"a" + "'" > "á"
a keyboard would, after checking that the initial context (
"a") matches, use
keyman.interface.output(1, Pelem, "á");
to erase one character
"a" and output one character
"á", effectively performing the desired