1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-11-03 04:27:16 -05:00

Fix #52, ignore n shortcut when filtering

This commit is contained in:
マリウス 2024-07-31 16:22:31 -05:00
parent 13e02f85ae
commit e5bf7e4c42
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

View File

@ -109,6 +109,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
case key.Matches(msg, m.keymap.NewPost):
if m.list.FilterState() == list.Filtering {
break
}
i, ok := m.list.SelectedItem().(post.Post)
if ok {
caps := (*m.ctx.Systems[i.SysIDX]).GetCapabilities()