mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:35:42 +01:00
Assign alternative keys for function keys
Assign number 1-5 keys as alternative keys for the function keys. Some terminal programs like gnome-terminal doesn't like that apps use function keys.
This commit is contained in:
parent
7b0c738323
commit
063ff485e2
1 changed files with 10 additions and 5 deletions
|
@ -255,11 +255,11 @@ static int mixer_help_yoffs = 0;
|
||||||
static char *mixer_help_text =
|
static char *mixer_help_text =
|
||||||
(
|
(
|
||||||
" Esc exit alsamixer\n"
|
" Esc exit alsamixer\n"
|
||||||
" F1 show Help screen\n"
|
" F1 / 1 show Help screen\n"
|
||||||
" F2 show /proc info screen\n"
|
" F2 / 2 show /proc info screen\n"
|
||||||
" F3 show Playback controls only\n"
|
" F3 / 3 show Playback controls only\n"
|
||||||
" F4 show Capture controls only\n"
|
" F4 / 4 show Capture controls only\n"
|
||||||
" F5 show all controls\n"
|
" F5 / 5 show all controls\n"
|
||||||
" Return return to main screen\n"
|
" Return return to main screen\n"
|
||||||
" Space toggle Capture facility\n"
|
" Space toggle Capture facility\n"
|
||||||
" Tab toggle ExactMode\n"
|
" Tab toggle ExactMode\n"
|
||||||
|
@ -1803,15 +1803,18 @@ mixer_iteration (void)
|
||||||
case 'H':
|
case 'H':
|
||||||
case '?':
|
case '?':
|
||||||
case KEY_F (1):
|
case KEY_F (1):
|
||||||
|
case '1':
|
||||||
mixer_view = VIEW_HELP;
|
mixer_view = VIEW_HELP;
|
||||||
key = 0;
|
key = 0;
|
||||||
break;
|
break;
|
||||||
case '/':
|
case '/':
|
||||||
case KEY_F (2):
|
case KEY_F (2):
|
||||||
|
case '2':
|
||||||
mixer_view = VIEW_PROCINFO;
|
mixer_view = VIEW_PROCINFO;
|
||||||
key = 0;
|
key = 0;
|
||||||
break;
|
break;
|
||||||
case KEY_F (3):
|
case KEY_F (3):
|
||||||
|
case '3':
|
||||||
if (mixer_view == VIEW_PLAYBACK) {
|
if (mixer_view == VIEW_PLAYBACK) {
|
||||||
mixer_clear (FALSE);
|
mixer_clear (FALSE);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1822,6 +1825,7 @@ mixer_iteration (void)
|
||||||
key = 0;
|
key = 0;
|
||||||
break;
|
break;
|
||||||
case KEY_F (4):
|
case KEY_F (4):
|
||||||
|
case '4':
|
||||||
if (mixer_view == VIEW_CAPTURE) {
|
if (mixer_view == VIEW_CAPTURE) {
|
||||||
mixer_clear (FALSE);
|
mixer_clear (FALSE);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1832,6 +1836,7 @@ mixer_iteration (void)
|
||||||
key = 0;
|
key = 0;
|
||||||
break;
|
break;
|
||||||
case KEY_F (5):
|
case KEY_F (5):
|
||||||
|
case '5':
|
||||||
if (mixer_view == VIEW_CHANNELS) {
|
if (mixer_view == VIEW_CHANNELS) {
|
||||||
mixer_clear (FALSE);
|
mixer_clear (FALSE);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue