1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

Bump gocui fork

This commit is contained in:
Jesse Duffield
2019-05-09 21:27:35 +10:00
parent 8754d766e2
commit 357b8fa98f
5 changed files with 8 additions and 128 deletions

View File

@ -35,10 +35,13 @@ func (kb *keybinding) matchKeypress(key Key, ch rune, mod Modifier) bool {
// matchView returns if the keybinding matches the current view.
func (kb *keybinding) matchView(v *View) bool {
// if the user is typing in a field, ignore char keys
if v == nil {
return false
}
if v.Editable == true && kb.ch != 0 {
return false
}
return v != nil && kb.viewName == v.name
return kb.viewName == v.name
}
// Key represents special keys or keys combinations.