diff --git a/src/ImGui.NET/TextEditCallbackData.cs b/src/ImGui.NET/TextEditCallbackData.cs index 24789e4..b67af9a 100644 --- a/src/ImGui.NET/TextEditCallbackData.cs +++ b/src/ImGui.NET/TextEditCallbackData.cs @@ -59,5 +59,7 @@ namespace ImGuiNET /// Read-write. /// public int SelectionEnd; + + public bool HasSelection() { return SelectionStart != SelectionEnd; } } }