Fix output log command history popup to return focus back to input field on arrow left

This commit is contained in:
Wojtek Figat
2024-11-21 23:22:08 +01:00
parent 3de3c1f2c6
commit 377eb78020

View File

@@ -166,6 +166,17 @@ namespace FlaxEditor.Windows
return true;
}
break;
case KeyboardKeys.ArrowLeft:
if (Owner != null && (!Owner._searchPopup?.Visible ?? true))
{
// Focus back the input field as user want to modify command from history
Owner._searchPopup?.Hide();
Owner.RootWindow.Focus();
Owner.Focus();
Owner.OnKeyDown(key);
return true;
}
break;
}
return base.OnKeyDown(key);
}