termui icon indicating copy to clipboard operation
termui copied to clipboard

Add an "Active" member for Block to allow "focusable" widgets

Open pdevine opened this issue 5 years ago • 0 comments

This change adds a new "Active" member to Block so that it can be used to tell whether a given widget is in focus or not. I added some examples to show how you can use it.

I wasn't sure if "Active" was the correct term here. GTK uses the term "Has Focus" which might be more appropriate.

This relates to #209

pdevine avatar Feb 11 '20 19:02 pdevine