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:
Takashi Iwai 2004-12-03 13:34:39 +00:00
parent 7b0c738323
commit 063ff485e2

View file

@ -255,11 +255,11 @@ static int mixer_help_yoffs = 0;
static char *mixer_help_text =
(
" Esc exit alsamixer\n"
" F1 show Help screen\n"
" F2 show /proc info screen\n"
" F3 show Playback controls only\n"
" F4 show Capture controls only\n"
" F5 show all controls\n"
" F1 / 1 show Help screen\n"
" F2 / 2 show /proc info screen\n"
" F3 / 3 show Playback controls only\n"
" F4 / 4 show Capture controls only\n"
" F5 / 5 show all controls\n"
" Return return to main screen\n"
" Space toggle Capture facility\n"
" Tab toggle ExactMode\n"
@ -1803,15 +1803,18 @@ mixer_iteration (void)
case 'H':
case '?':
case KEY_F (1):
case '1':
mixer_view = VIEW_HELP;
key = 0;
break;
case '/':
case KEY_F (2):
case '2':
mixer_view = VIEW_PROCINFO;
key = 0;
break;
case KEY_F (3):
case '3':
if (mixer_view == VIEW_PLAYBACK) {
mixer_clear (FALSE);
} else {
@ -1822,6 +1825,7 @@ mixer_iteration (void)
key = 0;
break;
case KEY_F (4):
case '4':
if (mixer_view == VIEW_CAPTURE) {
mixer_clear (FALSE);
} else {
@ -1832,6 +1836,7 @@ mixer_iteration (void)
key = 0;
break;
case KEY_F (5):
case '5':
if (mixer_view == VIEW_CHANNELS) {
mixer_clear (FALSE);
} else {