Chris Cummer
beb0c43b07
Add character identifiers to focusable widgets
...
When no widget has focus, press the letter key to focus on the widget
assigned to that letter.
Example:
GitHub (d)
Press "d" to focus on the GitHub widget.
2018-07-30 15:51:19 -07:00
Chris Cummer
66868a3f49
Unexport colorFor() function
2018-07-26 13:50:37 -07:00
Chris Cummer
c8b22eb588
Close #202 . Keep focus on the selected widget when a modal is closed
2018-06-13 15:46:58 -07:00
Chris Cummer
d246cb4c4a
Rename TextViewer to Wtfable
2018-05-14 21:04:37 -07:00
Chris Cummer
6158a055da
Better focus check code using FocustState enum
2018-05-14 21:04:37 -07:00
Chris Cummer
00504c43ff
Fixes #39 . Unfocused tab problem solved
2018-05-14 21:04:37 -07:00
Chris Cummer
4727255df6
Focusable widgets get their own border color
2018-05-02 14:27:18 -07:00
Chris Cummer
d982ca48c5
Add FocusTracker#Refocus()
2018-04-29 22:42:29 -07:00
Chris Cummer
eb9a56ed77
Zero focusables not a problem anymore
2018-04-29 11:57:49 -07:00
Chris Cummer
da75e116c1
Fix merge conflict in todo/widget.go
2018-04-29 07:56:02 -07:00
Chris Cummer
037c90db85
Widget#focus now a thing
...
Widgets can inform whether or not they should get tab focus.
Widgets that provide additional functionality should return true.
Widgets that have no extra capability should return false.
This allows the FocusTracker to only tab through and focus on widgets
for which it provides value.
2018-04-28 23:41:51 -07:00
Chris Cummer
4a30de5d51
Rough draft of adding new items to Todo
2018-04-28 22:06:12 -07:00
Chris Cummer
3de253bd0d
Better color config standardization. It's not just random anymore
2018-04-23 09:17:54 -07:00
Chris Cummer
d7bc26684a
Some minor cleanup
2018-04-22 23:40:57 -07:00
Chris Cummer
12ef3919dc
Cleanup of stray files. Don't need so many single-use packages
2018-04-18 17:51:43 -07:00
Chris Cummer
3175b8d9cc
Quick run through to add some documentation comments
2018-04-17 15:55:36 -07:00
Chris Cummer
912de2fa11
Can focus/blur widgets (with focus border color)
2018-04-17 04:26:18 -07:00