Skip to content

Commit 05e8e90

Browse files
K-TonePauliusd01
andauthored
FIX: Extra empty lines added in the control bindings drop-down for some mouse buttons (#2299)
Co-authored-by: Paulius Dervinis <pauliusd@unity3d.com>
1 parent 6f1ad16 commit 05e8e90

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Assets/Tests/InputSystem.Editor/UGUITests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR && UNITY_6000_0_OR_NEWER
1+
#if UNITY_EDITOR && UNITY_6000_0_OR_NEWER && UNITY_INPUT_SYSTEM_ENABLE_UI
22
using System;
33
using NUnit.Framework;
44
using UnityEditor;

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ however, it has to be formatted properly to pass verification tests.
1313
### Fixed
1414

1515
- Fixed warnings being generated on Unity 6.4 and 6.5. (ISX-2395).
16+
- Fixed extra empty lines being displayed in the control binding list when mouse buttons are pressed [ISXB-1677](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1677)
1617

1718
## [1.17.0] - 2025-11-25
1819

Packages/com.unity.inputsystem/InputSystem/Editor/Internal/AdvancedDropdown/AdvancedDropdownDataSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void BuildSearchableElements(AdvancedDropdownItem item)
118118
{
119119
if (!item.children.Any())
120120
{
121-
if (!item.IsSeparator())
121+
if (!item.IsSeparator() && item.searchableName.Length > 0)
122122
m_SearchableElements.Add(item);
123123
return;
124124
}

0 commit comments

Comments
 (0)