undoEnabled(enable)

Class: PasswordField. Method inherited from UIComponent.

Description:

Sets or gets whether GUI should handle key combinations CTRL+Z and CTRL+Y to perform undo and redo actions for text editing components. If disabled, undo and redo can still be performed by calling undo() and redo() methods.

Parameters:

Name Type Description

enable

boolean

Enables/disables undo/redo performed by keyboard keys. Default is true.

Returns:

Returns this component if argument is provided, otherwise returns boolean value.

Type: this | boolean