Skip to content

Commit

Permalink
#5635: Set focus on the command entry when the console panel is getti…
Browse files Browse the repository at this point in the history
…ng focused
  • Loading branch information
codereader committed Jun 14, 2021
1 parent 359b500 commit 9d08ce2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions radiant/log/Console.cpp
Expand Up @@ -49,6 +49,12 @@ void Console::toggle(const cmd::ArgumentList& args)
GlobalGroupDialog().togglePage("console");
}

void Console::SetFocus()
{
// Propagate focus to command entry
_commandEntry->SetFocus();
}

void Console::writeLog(const std::string& outputStr, applog::LogLevel level)
{
switch (level)
Expand Down
2 changes: 2 additions & 0 deletions radiant/log/Console.h
Expand Up @@ -61,6 +61,8 @@ class Console :
{
return true; // Receive the buffered log output when attached
}

void SetFocus() override;
};

} // namespace ui

0 comments on commit 9d08ce2

Please sign in to comment.