-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
None
-
beta2
-
generic
-
generic
Name: sh120115 Date: 05/18/2001
When auditory feeback is turned on in the Metal L&F or when the Windows L&F is
used with a sound set for menu commands in the Windows control panel, selecting
a menu item should play a sound.
Currently, this works when a menu item is selected through the mouse but not
when the menu item is selected through the keyboard (through mnemonics or by
navigating the menu to the item).
It appears that the playSound() function is used in the doClick() method of
BasicMenuItemUI to handle the mouse selection, but nowhere else to handle
keyboard selection.
Currently, other bugs may make reproducing this behaviour tricky. The sounds
have been turned off for beta by default and short sounds don't play on
Windows. The best way to reproduce this is to follow these steps using the
Windows L&F.
In the Windows control panel, set up a sound for menu commands. Use a mid-
length sound clip and not a short one. Start up SwingSet2, and while the Metal
L&F is still being used, turn auditory feedback on (usually this is un-
necessary, but since the sounds have been turned off for beta, this forces them
back on for all L&Fs). Now switch to the Windows L&F. Select a menu item with
the mouse and the sound should play (if not, choose a longer sound). Now select
the item with the keyboard and there will be no sound played.
======================================================================