diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-05-25 22:13:03 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-05-25 22:13:03 +0000 |
commit | 5b7d38c091a7e539181709892e781316cd57a85d (patch) | |
tree | 5c33d4ee32c695b6794921be3e8488335b9c723f /Source | |
parent | 2b1111d26762ad18f2b758872e774335ac314d7c (diff) | |
download | sequelpro-5b7d38c091a7e539181709892e781316cd57a85d.tar.gz sequelpro-5b7d38c091a7e539181709892e781316cd57a85d.tar.bz2 sequelpro-5b7d38c091a7e539181709892e781316cd57a85d.zip |
• added two finger zoom gesture for de/increasing the font size of the Custom Query Editor
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMTextView.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index 9b5fb9aa..5afe2fef 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2598,6 +2598,21 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) NSBeep(); } +#pragma mark - +#pragma mark multi-touch trackpad support + +/* + * Trackpad two-finger zooming gesture in/decreases the font size + */ +- (void) magnifyWithEvent:(NSEvent *)anEvent +{ + if([anEvent deltaZ]>5.0) + [self makeTextSizeLarger]; + else if([anEvent deltaZ]<-5.0) + [self makeTextSizeSmaller]; + + [self insertText:@""]; +} @end |