mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-17 04:00:42 +00:00
Merge pull request #2653 from bedalton/formatting-cptextview
Formatting: add semi-colons and comma to CPTextView.j
This commit is contained in:
1 file changed
+7
-7
@@ -95,7 +95,7 @@ CPSelectByWord = 1;
|
||||
CPSelectByParagraph = 2;
|
||||
|
||||
var kDelegateRespondsTo_textShouldBeginEditing = 1 << 0,
|
||||
kDelegateRespondsTo_textShouldEndEditing = 1 << 1
|
||||
kDelegateRespondsTo_textShouldEndEditing = 1 << 1,
|
||||
kDelegateRespondsTo_textView_doCommandBySelector = 1 << 2,
|
||||
kDelegateRespondsTo_textView_willChangeSelectionFromCharacterRange_toCharacterRange = 1 << 3,
|
||||
kDelegateRespondsTo_textView_shouldChangeTextInRange_replacementString = 1 << 4,
|
||||
@@ -241,7 +241,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
_selectedTextAttributes = [CPMutableDictionary new];
|
||||
|
||||
_caret = [[_CPCaret alloc] initWithTextView:self];
|
||||
[_caret setRect:CGRectMake(0, 0, 1, 11)]
|
||||
[_caret setRect:CGRectMake(0, 0, 1, 11)];
|
||||
|
||||
var pboardTypes = [CPStringPboardType, CPColorDragType];
|
||||
|
||||
@@ -1586,7 +1586,7 @@ Sets the selection to a range of characters in response to user action.
|
||||
- (void)moveWordLeft:(id)sender
|
||||
{
|
||||
if ([self isSelectable])
|
||||
[self _moveSelectionIntoDirection:-1 granularity:CPSelectByWord]
|
||||
[self _moveSelectionIntoDirection:-1 granularity:CPSelectByWord];
|
||||
}
|
||||
|
||||
- (void)moveRight:(id)sender
|
||||
@@ -2390,7 +2390,7 @@ var CPTextViewAllowsUndoKey = @"CPTextViewAllowsUndoKey",
|
||||
{
|
||||
DOMElement _selectionBoxDOM;
|
||||
CGRect _rect;
|
||||
CPColor _color
|
||||
CPColor _color;
|
||||
CPTextView _textView;
|
||||
}
|
||||
|
||||
@@ -2540,7 +2540,7 @@ var CPTextViewAllowsUndoKey = @"CPTextViewAllowsUndoKey",
|
||||
var rect = [_textView._layoutManager boundingRectForGlyphRange:CPMakeRange(aLoc, 1) inTextContainer:_textView._textContainer];
|
||||
|
||||
if (aLoc >= [_textView._layoutManager numberOfCharacters])
|
||||
rect.origin.x = CGRectGetMaxX(rect)
|
||||
rect.origin.x = CGRectGetMaxX(rect);
|
||||
|
||||
[self setRect:rect];
|
||||
}
|
||||
@@ -2749,7 +2749,7 @@ var _CPCopyPlaceholder = '-';
|
||||
}, 20);
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
if (CPBrowserIsEngine(CPGeckoBrowserEngine))
|
||||
{
|
||||
@@ -2765,7 +2765,7 @@ var _CPCopyPlaceholder = '-';
|
||||
e.clipboardData.setData('text/plain', stringForPasting);
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
_CPNativeInputField.oncut = function(e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user