File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,17 @@ func NewDayView() *DayView { //nolint:funlen
32
32
app .ui .app .Draw ()
33
33
}),
34
34
}
35
- dayView .searchInput = tview .NewInputField ().SetLabel ("(l)Latest | (/)Search: " ).SetFieldWidth (60 ).SetDoneFunc (func (key tcell.Key ) {
36
- if key == tcell .KeyEnter {
37
- go func () {
38
- dayView .SearchIssues (dayView .searchInput .GetText ())
39
- }()
40
- }
41
- if key == tcell .KeyEscape {
42
- app .ui .app .SetFocus (dayView .latestIssuesList )
43
- }
44
- }).SetFieldStyle (tcell .StyleDefault .Foreground (tcell .ColorWhite ).Background (tcell .ColorBlack ))
35
+ dayView .searchInput = tview .NewInputField ().SetLabel ("(l)Latest | (/)Search: " ).SetFieldWidth (60 ).
36
+ SetDoneFunc (func (key tcell.Key ) {
37
+ if key == tcell .KeyEnter {
38
+ go func () {
39
+ dayView .SearchIssues (dayView .searchInput .GetText ())
40
+ }()
41
+ }
42
+ if key == tcell .KeyEscape {
43
+ app .ui .app .SetFocus (dayView .latestIssuesList )
44
+ }
45
+ }).SetFieldStyle (tcell .StyleDefault .Foreground (tcell .ColorWhite ).Background (tcell .ColorBlack ))
45
46
46
47
dayView .worklogList .SetBorder (true )
47
48
dayView .latestIssuesList .SetBorder (true )
You can’t perform that action at this time.
0 commit comments