You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears related to the tool tip, because if I get a 'c' into the box (by holding c and clicking the input box to get focus) the problem continues, but once I have two 'c' in the box, it starts to work perfectly, presumably because there are no commands starting with 'cc'. To clarify, once I have got 'cc' into the text input then it behaves normally right up until I press enter, or backspace one 'c'. So seems like somehow the popup completion hint is stealing the focus before I can even try anything?
Using the ImGui 1.80, no compiler errors or warnings, I am using the example code as such...
I brought the ui_terminal_commands.* straight from the example, and in my draw loop....
// Terminal
static custom_command_struct cmd_struct; // terminal commands can interact with this structure
static ImTerm::terminal<terminal_commands> terminal_log(cmd_struct);
static bool once = true;
static bool showing_term = true;
if (once){ // do this only once
terminal_log.set_min_log_level(ImTerm::message::severity::info);
spdlog::set_level(spdlog::level::trace);
spdlog::default_logger()->sinks().push_back(terminal_log.get_terminal_helper());
once = false;
}
if (showing_term) {
showing_term = terminal_log.show();
if (cmd_struct.should_close) {
//window.close(); // quit?
}
}
// End Terminal
The text was updated successfully, but these errors were encountered:
The Issue is the call to ImGui::SetNextWindowFocus() in show_autocomplete(). Commenting it out fixed the issue (at least on the docking branch of ImGui). I don't know however if that breaks anything else...
Hi there!
I have working well with spdlog integrated too, but there is one big problem... I can't enter any commands.
It seems like everytime I click to enter text into the command input, it only holds focus for 1 frame.
I can only get something into the command input box if I hold a key on the keyboard while clicking the input box.
The tool tip appears for a frame, then disappears, then focus is lost.
video of problem here
It appears related to the tool tip, because if I get a 'c' into the box (by holding c and clicking the input box to get focus) the problem continues, but once I have two 'c' in the box, it starts to work perfectly, presumably because there are no commands starting with 'cc'. To clarify, once I have got 'cc' into the text input then it behaves normally right up until I press enter, or backspace one 'c'. So seems like somehow the popup completion hint is stealing the focus before I can even try anything?
Using the ImGui 1.80, no compiler errors or warnings, I am using the example code as such...
I brought the ui_terminal_commands.* straight from the example, and in my draw loop....
The text was updated successfully, but these errors were encountered: