-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImGui::GetIO().WantCaptureKeyboard always true when editor opened #83
Comments
You need to provide more context about the issue. What is happening? What you expected to happen? Any information that you think may help. |
ed::SetCurrentEditor(edContext);
ed::Begin("My Editor");
int uniqueId = 1;
// Start drawing nodes.
ed::BeginNode(uniqueId++);
ImGui::Text("Node A");
ed::BeginPin(uniqueId++, ed::PinKind::Input);
ImGui::Text("-> In");
ed::EndPin();
ImGui::SameLine();
ed::BeginPin(uniqueId++, ed::PinKind::Output);
ImGui::Text("Out ->");
ed::EndPin();
ed::EndNode();
ed::End();
if (ImGui::GetIO().WantCaptureKeyboard)
{
print("locked");
} ImGui::GetIO().WantCaptureKeyboard always true even if node editor window not in focus. How to know when block dispatch keyboard input to my main event loop ? |
Can you comment out in |
Yes, it fix it thanks. But why force to capture keyboard and keyboard navigation in editor still possible ? |
I think call to capture is a leftover. I will remove it since editor does not need text input. |
Hi! Is this actually fixed? I have the same issue and in line 1096 the call to capture is still there. Thanks in advance! |
My apologize. I failed to push that change. It is not fixed on |
How prevent dispatch events to my main loop ?
The text was updated successfully, but these errors were encountered: