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

KSF

Summary

Save focus: Temporarily saves keyboard processing data for the currently-focused control.

Syntax

KeymanWeb.KSF()

Parameters

None.

Return Value

undefined

Description

Use this function to temporarily preserve all keyboard processing information during a single change-of-focus event.

This function is designed to allow custom UI elements, custom OSK displays (as for the EuroLatin2 keyboard), or keyboards with picker-style functionality (such as the Japanese keyboard) to operate without losing the current input state due to loss of focus for the active control.

A good example of when to call this function would be for onmousedown events for visual elements not intended to change the element of focus within KeymanWeb. It is safe for use outside of keyboard code.