summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/client/ui/core/core.go')
-rw-r--r--internal/client/ui/core/core.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go
index dd29106..5d87294 100644
--- a/internal/client/ui/core/core.go
+++ b/internal/client/ui/core/core.go
@@ -265,15 +265,17 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd {
return cmd
}
- left := msg.String() == "H"
- right := msg.String() == "L"
- direction := 0
- if left {
- direction = -1
- } else if right {
- direction = 1
+ if m.focus != FocusChat || !m.chat.Locked() {
+ left := msg.String() == "H"
+ right := msg.String() == "L"
+ direction := 0
+ if left {
+ direction = -1
+ } else if right {
+ direction = 1
+ }
+ m.move(direction)
}
- m.move(direction)
}
}