]> git.saurik.com Git - cydget.git/commitdiff
Stop taking away my keyboard!
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 31 Mar 2011 23:12:42 +0000 (23:12 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 31 Mar 2011 23:12:45 +0000 (23:12 +0000)
Tweak.mm

index 0d501cc756e9ea3454fab29b067c803955b74559..c4c0eb387c38ef7962e8839e1970f053396f66e1 100644 (file)
--- 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();