mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-18 03:31:05 +00:00
Merge
This commit is contained in:
commit
aa541d6d6f
1 changed files with 2 additions and 2 deletions
|
|
@ -93,10 +93,10 @@ func (h *InfoPane) HandleEvent(event tcell.Event) {
|
||||||
done := h.DoKeyEvent(ke)
|
done := h.DoKeyEvent(ke)
|
||||||
hasYN := h.HasYN
|
hasYN := h.HasYN
|
||||||
if e.Key() == tcell.KeyRune && hasYN {
|
if e.Key() == tcell.KeyRune && hasYN {
|
||||||
if e.Rune() == 'y' && hasYN {
|
if (e.Rune() == 'y' || e.Rune() == 'Y') && hasYN {
|
||||||
h.YNResp = true
|
h.YNResp = true
|
||||||
h.DonePrompt(false)
|
h.DonePrompt(false)
|
||||||
} else if e.Rune() == 'n' && hasYN {
|
} else if (e.Rune() == 'n' || e.Rune() == 'N') && hasYN {
|
||||||
h.YNResp = false
|
h.YNResp = false
|
||||||
h.DonePrompt(false)
|
h.DonePrompt(false)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue