Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0 (home page)Version 16.0 (home page, current version)Version 15.0 (home page)Version 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.0Version 1.0 (home page)

On this page

KO

Summary

Outputs the specified string to an element, overwriting nd characters before the caret.

Syntax

KeymanWeb.KO(nd, Pelem, str);

Parameters

nd
Type: number
The number of characters to overwrite. Passively ignores values less than zero.
Pelem
Type: Element
The input element to receive the output text.
str
Type: string
The output text to write to the input element.

Return Value

undefined

Description

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

KeymanWeb.KO(1, Pelem, "á");

to erase one character "a" and output one character "á", effectively performing the desired replacement.

See also

KeymanWeb.KCM()