ALSA: Added vi-like key bindings to alsamixer.

* Added 'j' as an alias for KEY_DOWN
* Added 'k' as an alias for KEY_UP

Signed-off-by: Simon Hengel <simon.hengel@gmx.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Simon Hengel 2009-04-01 21:51:21 +02:00 committed by Takashi Iwai
parent d01bbbd706
commit 8e0eb860ef

View file

@ -2113,11 +2113,13 @@ mixer_iteration (void)
mixer_hscroll_delta -= 1;
break;
case KEY_UP:
case 'k':
case 'w':
case 'W':
mixer_vscroll_delta -= 1;
break;
case KEY_DOWN:
case 'j':
case 'x':
case 'X':
mixer_vscroll_delta += 1;
@ -2179,12 +2181,14 @@ mixer_iteration (void)
break;
case 'w':
case KEY_UP:
case 'k':
mixer_set_delta(1);
case 'W':
mixer_add_delta(1);
break;
case 'x':
case KEY_DOWN:
case 'j':
mixer_set_delta(-1);
case 'X':
mixer_add_delta(-1);