mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
revert of breaking change wrt backspace
This commit is contained in:
@@ -1211,12 +1211,9 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
else
|
||||
changedRange = _selectionRange;
|
||||
|
||||
var isCharacterAtLocationIndex = [self _isCharacterAtIndex:(changedRange.location - 1) granularity:_previousSelectionGranularity],
|
||||
isCharacterAtMaxIndex = [self _isCharacterAtIndex:CPMaxRange(changedRange) granularity:_previousSelectionGranularity],
|
||||
stringLength = [[self string] length];
|
||||
|
||||
if ((_previousSelectionGranularity > 0) && (changedRange.location > 0) && isCharacterAtLocationIndex &&
|
||||
(changedRange.location < stringLength) && isCharacterAtMaxIndex)
|
||||
if (_previousSelectionGranularity > 0 &&
|
||||
changedRange.location > 0 && [self _isCharacterAtIndex:(changedRange.location - 1) granularity:_previousSelectionGranularity] &&
|
||||
changedRange.location < [[self string] length] && [self _isCharacterAtIndex:CPMaxRange(changedRange) granularity:_previousSelectionGranularity])
|
||||
{
|
||||
changedRange.length++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user