From 927f2ead9266fb1bf0503087845d60a2362a5e53 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 5 Jan 2010 09:07:53 +0000 Subject: [PATCH] Fixed a silly (but unfortunately non-fatal) error in the keyboard handling. --- LockScreen.mm | 21 +++++++++++++++++++++ control | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/LockScreen.mm b/LockScreen.mm index fc8cc25..b350935 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -311,6 +311,8 @@ class Pcre { NSMutableSet *loading_; bool error_; bool reloading_; + + //UIKeyboard *keyboard_; } @end @@ -357,6 +359,8 @@ class Pcre { if (confirm_ != nil) [confirm_ release]; + //[keyboard_ release]; + [scroller_ release]; [indicator_ release]; [loading_ release]; @@ -557,6 +561,16 @@ class Pcre { NSString *homepage([configuration objectForKey:@"Homepage"]); [self loadURL:[NSURL URLWithString:homepage]]; + + /*[UIKeyboard initImplementationNow]; + CGSize keysize = [UIKeyboard defaultSize]; + CGRect keyrect = {{0, [self bounds].size.height - 100}, keysize}; + keyboard_ = [[UIKeyboard alloc] initWithFrame:keyrect]; + [self addSubview:keyboard_]; + + [self addSubview:[[UITextView alloc] initWithFrame:CGRectMake(200, 0, 100, 100)]]; + [self addSubview:[[UITextView alloc] initWithFrame:CGRectMake(200, 150, 100, 100)]]; + [self addSubview:[[UITextView alloc] initWithFrame:CGRectMake(200, 300, 100, 100)]];*/ } return self; } @@ -644,6 +658,13 @@ class Pcre { [self view:sender didSetFrame:frame]; } +- (void) formAssistant:(id)sender didBeginEditingFormNode:(id)node { +} + +- (void) formAssistant:(id)sender didEndEditingFormNode:(id)node { + [self fixScroller]; +} + - (void) webView:(WebView *)sender willBeginEditingFormElement:(id)element { editing_ = true; } diff --git a/control b/control index e0deae1..dc4a9f4 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: Development Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3105-1 +Version: 0.9.3106-1 Description: framework for managing lock screen plugins Name: Cydget Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1) -- 2.45.2