parent
490a4a9d07
commit
6d1a840587
2
ui.go
2
ui.go
@ -816,7 +816,7 @@ func (ui *ui) pollEvent() termbox.Event {
|
|||||||
case key := <-ui.keyChan:
|
case key := <-ui.keyChan:
|
||||||
ev := termbox.Event{Type: termbox.EventKey}
|
ev := termbox.Event{Type: termbox.EventKey}
|
||||||
|
|
||||||
if len(key) == 1 {
|
if utf8.RuneCountInString(key) == 1 {
|
||||||
ev.Ch, _ = utf8.DecodeRuneInString(key)
|
ev.Ch, _ = utf8.DecodeRuneInString(key)
|
||||||
} else {
|
} else {
|
||||||
switch {
|
switch {
|
||||||
|
Loading…
Reference in New Issue
Block a user