1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Closes #44. Cannot tab to disabled widgets.

This commit is contained in:
Chris Cummer 2018-05-16 17:22:14 -07:00
parent a3e593b93f
commit 2ecd5e4b84
3 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,9 @@
wtf: wtf:
colors:
border:
focusable: darkslateblue
focused: orange
normal: gray
grid: grid:
columns: [40, 40] columns: [40, 40]
rows: [13, 13, 4] rows: [13, 13, 4]

View File

@ -108,6 +108,11 @@ func WriteConfigFile() {
const simpleConfig = ` const simpleConfig = `
wtf: wtf:
colors:
border:
focusable: darkslateblue
focused: orange
normal: gray
grid: grid:
columns: [40, 40] columns: [40, 40]
rows: [13, 13, 4] rows: [13, 13, 4]

View File

@ -61,7 +61,7 @@ func (widget *TextWidget) Enabled() bool {
} }
func (widget *TextWidget) Focusable() bool { func (widget *TextWidget) Focusable() bool {
return widget.focusable return widget.enabled && widget.focusable
} }
func (widget *TextWidget) RefreshInterval() int { func (widget *TextWidget) RefreshInterval() int {