"focusPolicy"

Gets or sets the focus policy.

Synopsis

setValue(string shape, "focusPolicy", string policy);

getValue(string shape, "focusPolicy", string policy);

shape.focusPolicy(string policy);

Parameters

Parameter Description
shape Name of the object
policy Focus policy

Description

The attribute allows to define the focus behavior of the object. Following options are available:

  • NoFocus - The object will not receive focus even if it is directly clicked. Should not be used for input elements as it will prevent any text input.
  • StrongFocus - The object will receive the focus either via tab/backtab key or by clicking.(default)

Assignment

All widgets