aboutsummaryrefslogtreecommitdiff
path: root/src/keybinds.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/keybinds.go')
-rw-r--r--src/keybinds.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/keybinds.go b/src/keybinds.go
index f9d932c..64e895b 100644
--- a/src/keybinds.go
+++ b/src/keybinds.go
@@ -7,13 +7,14 @@ import (
7 7
8func (a *app) setupKeybindings(p *tview.Box) { 8func (a *app) setupKeybindings(p *tview.Box) {
9 p.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { 9 p.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
10 // Next & pause 10 switch event.Rune() {
11 if event.Rune() == 'l' { 11 case 'q':
12 a.tv.Stop()
13 return nil
14 case 'l':
12 a.playQueue.Next() 15 a.playQueue.Next()
13 return nil 16 return nil
14 } 17 case 'p':
15
16 if event.Rune() == 'p' {
17 a.playQueue.TogglePause() 18 a.playQueue.TogglePause()
18 return nil 19 return nil
19 } 20 }