From 672fa884bee5352a88404de7015b608ad83015a0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 31 Mar 2011 23:12:42 +0000 Subject: [PATCH] Stop taking away my keyboard! --- Tweak.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tweak.mm b/Tweak.mm index 0d501cc..c4c0eb3 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -221,6 +221,12 @@ MSInstanceMessageHook1(void, SBAwayController, _finishedUnlockAttemptWithStatus, MSOldCall(status); } +// this is called occasionally by -[SBAwayView updateInterface] and takes away our keyboard +MSInstanceMessageHook0(void, SBAwayView, _fixupFirstResponder) { + if (online_ == 0) + return MSOldCall(); +} + MSInstanceMessageHook0(void, SBAwayView, updateInterface) { MSOldCall(); -- 2.50.0