Skip to content

Commit eeb4762

Browse files
committed
example/gallery: refactoring
1 parent a1359cf commit eeb4762

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example/gallery/ui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (g *Game) logWindow(ctx *debugui.Context) {
207207
ctx.TextField(&g.logSubmitBuf).On(func() {
208208
if ebiten.IsKeyPressed(ebiten.KeyEnter) {
209209
submit()
210-
ctx.SetTextFieldValue(g.logSubmitBuf)
210+
ctx.SetTextFieldValue("")
211211
}
212212
})
213213
ctx.Button("Submit").On(func() {

0 commit comments

Comments
 (0)