diff --git a/Keyboard-focus.md b/Keyboard-focus.md new file mode 100644 index 0000000..0ad175b --- /dev/null +++ b/Keyboard-focus.md @@ -0,0 +1,5 @@ +## Keyboard focus + +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. \ No newline at end of file