]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Remove number key assignment
authorTakashi Iwai <tiwai@suse.de>
Wed, 12 Jan 2005 11:02:27 +0000 (11:02 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Jan 2005 11:02:27 +0000 (11:02 +0000)
Don't use number keys for alternatives to F1-F5.
The Tab key can be used to toggle view modes, instead.

alsamixer/alsamixer.1
alsamixer/alsamixer.c

index 2e13fc511ea3f90dc2007a9f3009a6e2eada3cd6..06d327ae166397883b8edc5f79d0a29d6d20576a 100644 (file)
@@ -84,12 +84,13 @@ The default view mode is the playback view.  You can change it via
 \fI-V\fP option.
 
 Each view mode can be switched via keys, \fIF3\fP, \fIF4\fP and \fIF5\fP keys
-for playback, capture and all views, respectively.  Instead of function keys,
-the number keys \fI3\fP, \fI4\fP and \fI5\fP are accepted, too, for terminals
-which can't handle function keys.
+for playback, capture and all views, respectively.  \fITAB\fP key toggles the
+current view mode circularly.
 
 In addition to these view modes, you can switch to the help mode and
 the proc info mode via \fIF1\fP and \fIF2\fP keys, respectively.
+On terminals that can't use funtion keys like gnome-terminal, \fI?\fP and
+\fI/\fP keys can be used alternatively for help and proc modes.
 
 .SH KEYBOARD COMMANDS
 \fBalsamixer\fP recognizes the following keyboard commands to control the soundcard. 
index 369d2d3e08e0d43b009663422cd50b2b2ee4894b..9f741ac11a1c2030b220bc86a3815157123c4b2b 100644 (file)
@@ -257,14 +257,14 @@ static int         mixer_help_yoffs = 0;
 static char     *mixer_help_text =
 (
  " Esc     exit alsamixer\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"
+ " 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"
+ " Tab     toggle view mode\n"
  " Return  return to main screen\n"
  " Space   toggle Capture facility\n"
- " Tab     toggle ExactMode\n"
  " m M     toggle mute on both channels\n"
  " < >     toggle mute on left/right channel\n"
  " Up      increase left and right volume\n"
@@ -1908,18 +1908,15 @@ 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 {
@@ -1935,7 +1932,6 @@ mixer_iteration (void)
       key = 0;
       break;
     case KEY_F (4):
-    case '4':
       if (mixer_view == VIEW_CAPTURE) {
        mixer_clear (FALSE);
       } else {
@@ -1951,7 +1947,6 @@ mixer_iteration (void)
       key = 0;
       break;
     case KEY_F (5):
-    case '5':
       if (mixer_view == VIEW_CHANNELS) {
        mixer_clear (FALSE);
       } else {
@@ -1961,6 +1956,15 @@ mixer_iteration (void)
       } 
       key = 0;
       break;
+    case 9: /* Tab */
+      if (mixer_view >= VIEW_CHANNELS && mixer_view <= VIEW_CAPTURE) {
+       mixer_view = (mixer_view + 1) % 3 + VIEW_CHANNELS;
+       mixer_view_saved = mixer_view;
+       mixer_changed_state = 1;
+       mixer_reinit ();
+       key = 0;
+      }
+      break;
     case '\014':
     case 'L':
     case 'l':