dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/4] dtas-console: allow exit via 'q' key


From: Eric Wong
Subject: [PATCH 2/4] dtas-console: allow exit via 'q' key
Date: Mon, 30 Sep 2013 09:18:06 +0000

It is easier to break out of dtas-console with one key than using a
2-finger combination.
---
 Documentation/dtas-console.txt | 2 +-
 bin/dtas-console               | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/dtas-console.txt b/Documentation/dtas-console.txt
index de5618d..1aaeb5a 100644
--- a/Documentation/dtas-console.txt
+++ b/Documentation/dtas-console.txt
@@ -32,7 +32,7 @@ Key bindings are inspired partially by mplayer(1)
 - 9/0 - decrease/increase ReplayGain preamp
 - 'f'/'F' - decrease/increase ReplayGain fallback_gain value
 - 'r'/'R' - cycle forward/backwards through ReplayGain modes
-- Ctrl-C - exit dtas-console
+- 'q'/Ctrl-C - exit dtas-console
 
 # ENVIRONMENT
 
diff --git a/bin/dtas-console b/bin/dtas-console
index 0cb14fa..16ed592 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -172,6 +172,7 @@ begin
         case key = Curses.getch
         when "j" then c.req_ok("seek -5")
         when "k" then c.req_ok("seek +5")
+        when "q" then exit(0)
         when Curses::KEY_DOWN then c.req_ok("seek -60")
         when Curses::KEY_UP then c.req_ok("seek +60")
         when Curses::KEY_LEFT then c.req_ok("seek -10")
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]