diff options
author | rowanbeentje <rowan@beent.je> | 2011-04-11 00:21:41 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-04-11 00:21:41 +0000 |
commit | 2621e79c75a0119a54c669b263caa82183bd19c8 (patch) | |
tree | 40f77701799aa5afb95b427b813050cb2765fc48 /Source/SPTextViewAdditions.m | |
parent | 6b154a3822f133a6e8cb09c116853bcd728b53cf (diff) | |
download | sequelpro-2621e79c75a0119a54c669b263caa82183bd19c8.tar.gz sequelpro-2621e79c75a0119a54c669b263caa82183bd19c8.tar.bz2 sequelpro-2621e79c75a0119a54c669b263caa82183bd19c8.zip |
- Add Command-0 as the shortcut to restore the default font size in the HTML output window and bundle and field editors, adding commands for the equivalent functionality. This standardises text views with the custom query view and other applications
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 0d3b4b8e..b0e87f3d 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -482,6 +482,18 @@ [self setEditable:editableStatus]; } +/** + * Increase the textView's font size by 1 + */ +- (void)makeTextStandardSize +{ + NSFont *aFont = [self font]; + BOOL editableStatus = [self isEditable]; + [self setEditable:YES]; + [self setFont:[[NSFontManager sharedFontManager] convertFont:aFont toSize:11.0f]]; + [self setEditable:editableStatus]; +} + - (IBAction)executeBundleItemForInputField:(id)sender { |