Fix relative to mouse cursor
When i draw other items on top of TextEditor, when my mouse passes over the item draw on top the cursor was still a TextInput. But this is not correct if I'm hovering a button/label/unvisibleButton on top (for example)
diff --git a/TextEditor.cpp b/TextEditor.cpp
index 327d3d0..c48e050 100644
--- a/TextEditor.cpp
+++ b/TextEditor.cpp
@@ -464,7 +464,7 @@
if (ImGui::IsWindowFocused())
{
- if (ImGui::IsWindowHovered())
+ if (ImGui::IsWindowHovered() && !ImGui::IsAnyItemHovered() && !ImGui::IsAnyItemFocused())
ImGui::SetMouseCursor(ImGuiMouseCursor_TextInput);
//ImGui::CaptureKeyboardFromApp(true);