mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-16 05:24:30 +00:00
fontpanel color well fix
This commit is contained in:
1 parent
b1ed299286
commit
4987fb5f15
2 files changed
+11
-1
No files matched your search
@@ -1341,6 +1341,16 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
[_delegate textViewDidChangeTypingAttributes:[[CPNotification alloc] initWithName:CPTextViewDidChangeTypingAttributesNotification object:self userInfo:nil]];
|
||||
}
|
||||
|
||||
- (CPDictionary)_attributesForFontPanel
|
||||
{
|
||||
var attributes = [[_textStorage attributesAtIndex:CPMaxRange(_selectionRange) effectiveRange:nil] copy];
|
||||
|
||||
if (![attributes containsKey:CPForegroundColorAttributeName])
|
||||
[attributes setObject:[self textColor] forKey:CPForegroundColorAttributeName];
|
||||
|
||||
return attributes;
|
||||
}
|
||||
|
||||
- (void)delete:(id)sender
|
||||
{
|
||||
[self deleteBackward:sender];
|
||||
|
||||
Reference in new issue
Block a user