Skip to content

Commit 1dd62fe

Browse files
committed
Remove j and h handling for scrolling branches
1 parent 7edea86 commit 1dd62fe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ui.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ func (ui *ui) handleKeyEvent(ev keyboard.KeyEvent) (bool, error) {
5959
case ev.Key == keyboard.KeyArrowUp:
6060
fallthrough
6161
case ev.Key == keyboard.KeyArrowLeft:
62-
fallthrough
63-
case ev.Rune == 'h':
6462
ui.view.selectPrevious()
6563
fmt.Fprintf(ui.wf, "→ %s\n", ui.view.selectedBranchWithColor())
6664
ui.wf.Flush()
@@ -69,8 +67,6 @@ func (ui *ui) handleKeyEvent(ev keyboard.KeyEvent) (bool, error) {
6967
case ev.Key == keyboard.KeyArrowDown:
7068
fallthrough
7169
case ev.Key == keyboard.KeyArrowRight:
72-
fallthrough
73-
case ev.Rune == 'j':
7470
ui.view.selectNext()
7571
fmt.Fprintf(ui.wf, "→ %s\n", ui.view.selectedBranchWithColor())
7672
ui.wf.Flush()

0 commit comments

Comments
 (0)