Skip to content

Commit

Permalink
Prefer the functions to direct field access
Browse files Browse the repository at this point in the history
so that I can replace with an interface later if needed
  • Loading branch information
gcla committed Sep 7, 2020
1 parent 4aef081 commit d755385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/mapkeys/mapkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.S
var res bool
for _, k := range seq {
// What should the handled value be??
res = w.IWidget.UserInput(tcell.NewEventKey(k.Key, k.Ch, k.Mod), size, focus, app)
res = w.IWidget.UserInput(tcell.NewEventKey(k.Key(), k.Rune(), k.Modifiers()), size, focus, app)
}
return res
} else {
Expand Down

0 comments on commit d755385

Please # to comment.