Fixed: When editing a table cell, the row lost focus.

Previously, when a table cell was edited, the table thought it had lost focus and displayed the cell's row highlight in an unfocused state.

This fix updates the _isFocused test to include tests for cell editing in both cell-based and view-based tables.
This commit is contained in:
Blair Duncan
2013-03-16 09:33:53 -04:00
committed by Aparajita Fishman
parent b36f8d794c
commit efdf0a6b84
+3 -1
View File
@@ -3889,7 +3889,9 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
*/
- (BOOL)_isFocused
{
return [[self window] isKeyWindow] && [[self window] firstResponder] === self;
var isEditing = _editingRow !== CPNotFound || _editingCellIndex;
return [[self window] isKeyWindow] && ([[self window] firstResponder] === self || isEditing);
}
/*!