UI Work
This commit is contained in:
@@ -138,7 +138,10 @@ func (w *PromptForTagWiddle) Measure() {
|
||||
}
|
||||
|
||||
func (w *PromptForTagWiddle) handleTermboxEvent(msg termbox.Event) wandle.Cmd {
|
||||
if msg.Key == termbox.KeyEnter {
|
||||
if msg.Key == termbox.KeyEsc {
|
||||
w.Done()
|
||||
return wandle.EmptyCmd
|
||||
} else if msg.Key == termbox.KeyEnter {
|
||||
if w.keyInput.IsEditable() {
|
||||
w.keyInput.SetActive(false)
|
||||
w.keyInput.SetEditable(false)
|
||||
|
||||
Reference in New Issue
Block a user