Skip to content

Commit

Permalink
change keys for bar changes in display.
Browse files Browse the repository at this point in the history
  • Loading branch information
noriah committed Dec 25, 2022
1 parent 2c7b8be commit 8067165
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions graphic/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,6 @@ func (d *Display) inputProcessor() {
switch ev.Type {
case termbox.EventKey:
switch ev.Key {
case termbox.KeyArrowUp:
d.AdjustSizes(1, 0)

case termbox.KeyArrowRight:
d.AdjustSizes(0, 1)

case termbox.KeyArrowDown:
d.AdjustSizes(-1, 0)

case termbox.KeyArrowLeft:
d.AdjustSizes(0, -1)

case termbox.KeySpace:
d.SetDrawType(d.drawType + 1)
Expand All @@ -197,6 +186,18 @@ func (d *Display) inputProcessor() {

default:
switch ev.Ch {
case 'w', 'W':
d.AdjustSizes(1, 0)

case 'd', 'D':
d.AdjustSizes(0, 1)

case 's', 'S':
d.AdjustSizes(-1, 0)

case 'a', 'A':
d.AdjustSizes(0, -1)

case 'i', 'I':
d.SetInvertDraw(!d.invertDraw)

Expand Down

0 comments on commit 8067165

Please sign in to comment.