OSDN Git Service

Assign alternative keys for function keys
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Dec 2004 13:34:39 +0000 (13:34 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Dec 2004 13:34:39 +0000 (13:34 +0000)
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.

alsamixer/alsamixer.c

index 560988a..8344d6e 100644 (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 {