summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-10-16 21:40:55 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:51 +0000
commitb49f4c9290180d61fa427469807ca6716dcfd54e (patch)
tree7e51639d85b36f0e5bb2c74a845e8cb65c1a64f8 /Cydia.mm
parentcf1b08047fc379ed790f4a1177d63d1695b3e560 (diff)
Some minor perfections.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm32
1 files changed, 21 insertions, 11 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 38f72d1..5742a76 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -4462,7 +4462,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
[sheet dismiss];
- }
+ } else if ([context isEqualToString:@"trivial"])
+ [sheet dismiss];
+ else if ([context isEqualToString:@"urlerror"])
+ [sheet dismiss];
}
- (id) initWithBook:(RVBook *)book database:(Database *)database {
@@ -4538,9 +4541,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[sheet addTextFieldWithValue:@"http://" label:@""];
UITextInputTraits *traits = [[sheet textField] textInputTraits];
- [traits setAutocapitalizationType:0];
+ [traits setAutocapitalizationType:UITextAutocapitalizationTypeNone];
+ [traits setAutocorrectionType:UITextAutocorrectionTypeNo];
[traits setKeyboardType:UIKeyboardTypeURL];
- [traits setAutocorrectionType:1];
+ // XXX: UIReturnKeyDone
+ [traits setReturnKeyType:UIReturnKeyNext];
[sheet popupAlertAnimated:YES];
}
@@ -5044,14 +5049,19 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
UITextField *username([sheet textFieldAtIndex:0]); {
UITextInputTraits *traits([username textInputTraits]);
- [traits setAutocapitalizationType:0];
- [traits setAutocorrectionType:1];
+ [traits setAutocapitalizationType:UITextAutocapitalizationTypeNone];
+ [traits setAutocorrectionType:UITextAutocorrectionTypeNo];
+ [traits setKeyboardType:UIKeyboardTypeASCIICapable];
+ [traits setReturnKeyType:UIReturnKeyNext];
}
UITextField *password([sheet textFieldAtIndex:1]); {
UITextInputTraits *traits([password textInputTraits]);
- [traits setAutocapitalizationType:0];
- [traits setAutocorrectionType:1];
+ [traits setAutocapitalizationType:UITextAutocapitalizationTypeNone];
+ [traits setAutocorrectionType:UITextAutocorrectionTypeNo];
+ [traits setKeyboardType:UIKeyboardTypeASCIICapable];
+ // XXX: UIReturnKeyDone
+ [traits setReturnKeyType:UIReturnKeyNext];
[traits setSecureTextEntry:YES];
}
@@ -6265,10 +6275,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[field_ setPaddingTop:5];
- UITextInputTraits *traits = [field_ textInputTraits];
- [traits setAutocapitalizationType:0];
- [traits setAutocorrectionType:1];
- [traits setReturnKeyType:6];
+ UITextInputTraits *traits([field_ textInputTraits]);
+ [traits setAutocapitalizationType:UITextAutocapitalizationTypeNone];
+ [traits setAutocorrectionType:UITextAutocorrectionTypeNo];
+ [traits setReturnKeyType:UIReturnKeySearch];
CGRect accrect = {{0, 6}, {6 + cnfrect.size.width + 6 + area.size.width + 6, area.size.height}};