mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Don't substitute the font if the textfield is not editable (a label)
This commit is contained in:
1 parent
90e9b86497
commit
c3c996f1f7
1 file changed
+1
-1
@@ -36,7 +36,7 @@
|
||||
{
|
||||
var cell = [aCoder decodeObjectForKey:@"NSCell"];
|
||||
|
||||
if ([[cell font] isEqual:[CPFont boldSystemFontOfSize:12.0]])
|
||||
if ([cell isEditable] && [[cell font] isEqual:[CPFont boldSystemFontOfSize:12.0]])
|
||||
[self setFont:[CPFont systemFontOfSize:12.0]];
|
||||
|
||||
[self sendActionOn:CPKeyUpMask|CPKeyDownMask];
|
||||
|
||||
Reference in new issue
Block a user