Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a1
2019.2.0a1
2019.3.0a1
2019.3.0a6
Issue ID
1164381
Regression
No
[UIElements] Invalid command sound effect on Mac OSX when pressing Delete on a VisualElement that consumes the key event
Steps to reproduce:
1. Open attached project.
2. Go to Window > UI > TEST.
3. Select the TextField on the label.
4. Press delete.
Reproducible with: 2019.1.8f1, 2019.2.0b7, 2019.3.0a7
Not reproducible with: 2017.4.29f1, 2018.4.3f1 (UI Elements were experimental)
Expected behaviour:
- No sound effect.
Actual behaviour:
- Invalid command sound effect plays.
Reproducible only on Mac OSX.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Resolution Note:
This is not be expected when reacting to raw keyboard events.
Instead one should use the command events which will be emitted from combination of keys and will actually control the sound effect:
textfield.RegisterCallback<ExecuteCommandEvent>(evt => {
if (evt.commandName == "Delete") {
evt.StopPropagation();
}
});