diff --git a/ui/ui.go b/ui/ui.go index aa0a508e..ed5c2825 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -291,6 +291,9 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } return m, cmd + // I do not think this state machine works quite well enough with custom keybinds + // as it kinda breaks down if you use two different keys across the views. + // Is it worth refactoring this to first check the "view" before the key? case key.Matches(msg, keys.IssueKeys.Assign), key.Matches(msg, keys.PRKeys.Assign): m.sidebar.IsOpen = true if m.ctx.View == config.PRsView {