| 2334 | ShowDrawer(Drawer); |
| 2335 | } |
| 2336 | |
| 2337 | void FEditorUI::DrawStatusBar(const FUpdateContext& UpdateContext) |
| 2338 | { |
| 2339 | bDrawerActivatedThisFrame = false; |
| 2340 | |
| 2341 | // Global drawer shortcuts (suppressed while typing into a text field). |
| 2342 | if (!ImGui::GetIO().WantTextInput) |
| 2343 | { |
| 2344 | for (FFooterDrawer& Drawer : FooterDrawers) |
| 2345 | { |
| 2346 | if (Drawer.Shortcut != 0 && ImGui::IsKeyChordPressed(Drawer.Shortcut)) |
| 2347 | { |
| 2348 | ActivateDrawer(Drawer); |
| 2349 | } |
| 2350 | } |
| 2351 | } |
| 2352 | |
| 2353 | // Backtick works like a game console, opening the log ready to type and closing it from the command line. |
| 2354 | if (ConsoleLogTool != nullptr && ImGui::IsKeyPressed(ImGuiKey_GraveAccent, false) && ImGui::GetIO().KeyMods == ImGuiMod_None) |
| 2355 | { |
| 2356 | if (FFooterDrawer* ConsoleDrawer = FindDrawerForTool(ConsoleLogTool)) |