-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComboBox plays both the "no change" and selection sound when closed #774
Comments
From what I can tell, this problem was introduced in 8b4861f. With this change,
The @pixelzoom - Since you made this change, I wanted to ask: Is it intentional that the list box be hidden at this point? If so, I can investigate alternative places to identify the list-box-closed-with-no-change situation, but I thought I'd check with you first, since the behavior doesn't seem to quite match the code flow and documentation. |
Yes, 8b4861f was very intentiional. And it's linked to the problem it fixes, #721, which I worked on with @jessegreenberg. Also note the comment that was added above the call to
The sound code seems to be making bad assumptions about when the button receives focus. The button must receive focus whenever the listbox is popped down, regardless of whether a new selection was made. So you probably should not be playing sounds in |
This problem has gone away. I dug into the code a bit in an effort to understand why, since it seems like it could potentially come back as easily as it disappeared, but most of the code related to the sound production and the hiding and showing of the list box hasn't changed in a way that would obviously affect this. My best guess is that something changed in the focus code that made it so that I'll close this, but will my eye out for any odd behavior associated with sound production in combo boxes in this use case. |
While reviewing #768 I noticed that the sound generation behavior for
ComboBox
has changed. As originally designed, an individual selection sound would be played if the user selected something different, and a generic "close" sound was played if the user opened theComboBox
, then closed it without changing anything. On the current version of master, both the generic and selection-specific sounds are played. This can be easily demonstrated in the current master version of Molarity.The text was updated successfully, but these errors were encountered: