From efdf0a6b84d0802a6235fa874418b242ccf602a2 Mon Sep 17 00:00:00 2001 From: Blair Duncan Date: Sat, 16 Mar 2013 08:31:38 -0400 Subject: [PATCH] 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. --- AppKit/CPTableView.j | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 4030c6afc..42f61dd74 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -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); } /*!