summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/terminal.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/terminal.cpp b/gui/terminal.cpp
index 29b0e8469..2b2671c0f 100644
--- a/gui/terminal.cpp
+++ b/gui/terminal.cpp
@@ -896,6 +896,10 @@ void GUITerminal::InitAndResize()
void GUITerminal::SetPageFocus(int inFocus)
{
- if (inFocus && isConditionTrue())
+ if (inFocus && isConditionTrue()) {
+ // TODO: grab focus correctly, this hack grabs focus and insists that the terminal be the focus regardless of other elements
+ // It's highly unlikely that there will be any other visible input elements on the page anyway...
+ SetInputFocus(1);
InitAndResize();
+ }
}