Skip to content

Commit

Permalink
Issue #150: Tapping Next on a QEntryElement keyboard scrolls the view…
Browse files Browse the repository at this point in the history
… up briefly before scrolling to the next row
  • Loading branch information
escoz committed Apr 17, 2012
1 parent 872ff8f commit 28a032d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quickdialog/QEntryTableViewCell.m
Expand Up @@ -191,14 +191,15 @@ - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRang


- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[_textField resignFirstResponder];

QEntryElement *element = [self findNextElementToFocusOn];
if (element!=nil){
UITableViewCell *cell = [_quickformTableView cellForElement:element];
if (cell!=nil){
[cell becomeFirstResponder];
}
} else {
[_textField resignFirstResponder];
}

if(_entryElement && _entryElement.delegate && [_entryElement.delegate respondsToSelector:@selector(QEntryShouldReturnForElement:andCell:)]){
Expand Down

0 comments on commit 28a032d

Please sign in to comment.