klyn.gui.windows.Widget.handleTabKey
method

    public handleTabKey(backward as Boolean) as Boolean:

Description

Gives a focused widget a chance to consume Tab before focus navigation.

The native backend calls this method only for Tab/Shift+Tab. Regular widgets return `false`, while specialized editors can return `true` when Tab has a local meaning, such as accepting a completion.

Parameters

Parameter | Description
--- | ---
`backward` | True when Shift+Tab was pressed.

Returns

True when the widget consumed the key.

Example

    public override handleTabKey(backward as Boolean) as Boolean:
    return this.acceptCompletion()