summaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-08-07 10:42:47 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-08-07 10:42:47 +0200
commite3ecbddba06f91c3ef5b3cd8305a8f2fdb6c9cde (patch)
treec12474268e452b242c688689bd8eba3d92f4a151 /src/audio.c
parent7f35380ee3a39faad1f10fcbb6b115b8ddc5f2a7 (diff)
cmd: add support for long commands
- Long commands are commands that is 2 or more characters, and MUST be completed by pressing enter. - A given command can have a long-command, a short-command or both. - All long commands are using '/' (slash) prefix - a simple TAB-completion is supported, while punching in your long command you can press TAB to see a list of commands that matches the input string. Feedback is welcome, specially on the long-command strings itself. If you want to suggest changes, please make a small and non-intrusive patch and send it as a Pull Request (PR).
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index c373cb8..f330864 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -1321,7 +1321,7 @@ int audio_send_digit(struct audio *a, char key)
info("audio: send DTMF digit: '%c'\n", key);
err = telev_send(a->telev, telev_digit2code(key), false);
}
- else if (a->tx.cur_key) {
+ else if (a->tx.cur_key != KEYCODE_REL) {
/* Key release */
info("audio: send DTMF digit end: '%c'\n", a->tx.cur_key);
err = telev_send(a->telev,