mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-17 16:11:28 +00:00
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:
committed by
Aparajita Fishman
parent
b36f8d794c
commit
efdf0a6b84
@@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user