From 66605df47339cb0e85fa30c9d49c5daf6f56686d Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 24 Apr 2023 14:22:54 +0200 Subject: [PATCH] fixed BorderLayout consumes all key events --- layouts/layout_border.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/layout_border.go b/layouts/layout_border.go index 8235e23..fb30e75 100644 --- a/layouts/layout_border.go +++ b/layouts/layout_border.go @@ -139,7 +139,7 @@ func (g *BorderLayout) Layout() (prefWidth, prefHeight int) { func (g *BorderLayout) OnKeyPressed(event *tui.KeyEvent) (consumed bool) { for _, view := range g.Views() { - if view.OnKeyPressed(event) { + if consumed := view.OnKeyPressed(event); consumed { return true } }