diff options
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r-- | widgets/terminal.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 279c2a33..5c67e32a 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -178,6 +178,9 @@ func (term *Terminal) HandleEvent(ev tcell.Event) bool { } switch ev := ev.(type) { case *views.EventWidgetContent: + if !term.focus { + return false + } // Draw here for performance improvement. We call draw again in // the main Draw, but tcell-term only draws dirty cells, so it // won't be too much extra CPU there. Drawing there is needed |