Skip to content

Commit 9bfd5cb

Browse files
committed
docs: Added a mention of the keyboard input
1 parent 28218f7 commit 9bfd5cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Editor/TypeDropdown/DropdownWindow.Position.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ private float GetWindowXPosition(float requestedXPosition, float windowWidth)
6060
// If the window width is smaller than the distance from cursor to the right border of the window, the
6161
// window will not appear because the cursor is outside of the window and OnGUI will never be called.
6262
float screenWidth = EditorGUIUtilityHelper.GetScreenWidth();
63-
requestedXPosition -=
64-
8f; // This will make the window appear so that foldout arrows are precisely below the cursor.
63+
requestedXPosition -= 8f; // This will make the window appear so that foldout arrows are precisely below the cursor.
6564
float distanceToRightBorder = screenWidth - requestedXPosition;
6665

6766
if (windowWidth > distanceToRightBorder)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ But if you need to refer to the `System.Type` object directly, use the **Type**
8787
bool isLoggerAbstract = greetingLoggerType.Type.IsAbstract;
8888
```
8989

90+
***Tip*** Instead of the mouse, you can use arrow keys to navigate the hierarchy of types in the dropdown menu and press Enter to choose a type!
91+
9092
## TypeOptions Attribute
9193

9294
If you need to customize the look of the drop-down menu or change what types are included in the list, use the `[TypeOptions]` attribute.

0 commit comments

Comments
 (0)