lockingKeys([keys])

Class: SwingUI.

Description:

Sets and gets locking keys state (Caps lock key, Num lock key, and Scroll lock key) to ON and OFF.

Parameters:

Name Type Description

[keys]

Object

Keys object example {caps_lock: false, num_lock: true, scroll_lock: false}. Only set keys you want to change.

Returns:

When setting arguments, this instance of SwingUI is returned, otherwise current value is returned.

Type: Object | SwingUI

Examples:

Setting Caps Lock to ON

ui.lockingKeys({caps_lock: true});