diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-03-31 21:04:14 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-03-31 21:07:59 +0200 |
commit | ec0b4320d4c770b75387c365d714c4d9ebdb2c41 (patch) | |
tree | 3092b4f47d6403be1fc467bb29de65ec5deead7e /gui/terminal.cpp | |
parent | TWRP Install Reboot Option (diff) | |
download | android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.tar android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.tar.gz android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.tar.bz2 android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.tar.lz android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.tar.xz android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.tar.zst android_bootable_recovery-ec0b4320d4c770b75387c365d714c4d9ebdb2c41.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/terminal.cpp | 6 |
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(); + } } |