1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Updated Keyboard focus (markdown)

Jakub Sobon 2019-03-03 18:51:20 -05:00
parent 8694a5f0dd
commit 1d3ad49b73

@ -1,3 +1,5 @@
[![Doc Status](https://godoc.org/github.com/mum4k/termdash/container?status.png)](https://godoc.org/github.com/mum4k/termdash/container)
Containers track keyboard focus. By default, any keyboard events are only delivered to widget in the focused container. The user changes the focused container by clicking on any area within the container. If the focused container has a border, its color will change according to the value of the [container.FocusedColor](https://godoc.org/github.com/mum4k/termdash/container#FocusedColor) option.
Note that widgets can also register for global keyboard events, see the [[Widget API|widget-api]] for more details.