Skip to content

Commit 772ec64

Browse files
committed
fix: disable keycode while editing texts
1 parent 72b2136 commit 772ec64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Scripts/Editor/CustomEditors/CollectionCustomEditor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ private void OnKeyUpOnCollectionListView(KeyUpEvent evt)
304304
{
305305
if (currentRenamingLabel != null)
306306
return;
307-
307+
308+
if (EditorGUIUtility.editingTextField)
309+
return;
310+
308311
switch (evt.keyCode)
309312
{
310313
case KeyCode.F2:

0 commit comments

Comments
 (0)