mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 12:56:31 +01:00
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:
parent
d01bbbd706
commit
8e0eb860ef
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue