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:
parent
a3e593b93f
commit
2ecd5e4b84
@ -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]
|
||||||
|
@ -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]
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user