Send the keydown event up the responder chain if there is no selected row.

This commit is contained in:
Damiano Galassi committed 2013-12-06 18:27:34 +01:00
1 parent ca28ed71e6
commit ac0c7dfb4f
1 file changed
+1 -3
+1 -3
View File
@@ -30,10 +30,8 @@
else
[delegate _deleteSelectionFromTableView:self];
return;
}
else if (key == 27) {
} else if (key == 27 && [self selectedRow] != -1) {
[self deselectAll:self];
return;
}
else
[super keyDown:event];