mirror of
https://github.com/jroimartin/gocui.git
synced 2025-04-26 13:48:49 +08:00
Fix typo
This commit is contained in:
parent
0ae41d5e52
commit
bae20cc034
4
gui.go
4
gui.go
@ -402,8 +402,8 @@ func horizontalRune(ch rune) bool {
|
||||
}
|
||||
|
||||
// onKey manages key-press events. A keybinding handler is called when
|
||||
// a key-press event satisfies a configured keybinding. Also,
|
||||
// currentView's internal buffer is modified is currentView.Editable is true.
|
||||
// a key-press event satisfies a configured keybinding. Furthermore,
|
||||
// currentView's internal buffer is modified if currentView.Editable is true.
|
||||
func (g *Gui) onKey(ev *termbox.Event) error {
|
||||
if g.currentView != nil && g.currentView.Editable {
|
||||
if err := g.handleEdit(g.currentView, ev); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user