diff options
author | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-11 20:54:33 +0100 |
---|---|---|
committer | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-11 20:54:33 +0100 |
commit | c27a2911eff2ffaa50977f9365ae0736e3b76b8a (patch) | |
tree | 9898d8571c5593d63061516025c2f1991ed36f33 /src/keybinds.go | |
parent | f4aa3110214513afbba43b2d1d483dc201d70e00 (diff) | |
download | termsonic-c27a2911eff2ffaa50977f9365ae0736e3b76b8a.tar.gz termsonic-c27a2911eff2ffaa50977f9365ae0736e3b76b8a.zip |
Add "Refresh" in config page
Diffstat (limited to 'src/keybinds.go')
-rw-r--r-- | src/keybinds.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keybinds.go b/src/keybinds.go index e3b80a1..f9d932c 100644 --- a/src/keybinds.go +++ b/src/keybinds.go | |||
@@ -5,9 +5,9 @@ import ( | |||
5 | "github.com/rivo/tview" | 5 | "github.com/rivo/tview" |
6 | ) | 6 | ) |
7 | 7 | ||
8 | func (a *app) setupMusicControlKeys(p *tview.Box) { | 8 | func (a *app) setupKeybindings(p *tview.Box) { |
9 | // Add 'k' and 'l' key bindings | ||
10 | p.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { | 9 | p.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { |
10 | // Next & pause | ||
11 | if event.Rune() == 'l' { | 11 | if event.Rune() == 'l' { |
12 | a.playQueue.Next() | 12 | a.playQueue.Next() |
13 | return nil | 13 | return nil |