diff options
| author | raven <citrons@mondecitronne.com> | 2026-02-11 17:08:51 -0600 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-02-11 17:08:51 -0600 |
| commit | 2ddec8b29c46f57481463abd9b56a39185986918 (patch) | |
| tree | 8df62c7cf9c4ac0978e13d81140039d90f4ecfcb /client/ui.go | |
| parent | 9b830a3d0b80d04368fae5e6bc48ad1e0049b913 (diff) | |
mark channel read upon interaction with UI
Diffstat (limited to 'client/ui.go')
| -rw-r--r-- | client/ui.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/ui.go b/client/ui.go index 3cba7e2..8331799 100644 --- a/client/ui.go +++ b/client/ui.go @@ -57,6 +57,13 @@ func (a *application) onInput(ev tui.Event) { } } + if ev.Key != 0 { + switch cl := a.currentWindow.(type) { + case channelLocation: + a.windowCache.Get(cl).(*channelWindow).fingersPresent() + } + } + buf := win.Buffer() scroll := tui.Size().Height - 5 switch ev.Key { |
