diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-15 21:16:37 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-15 21:16:37 +0000 |
commit | f0b12b052c2bfe5cdb197f9adb31f8b7136ada66 (patch) | |
tree | 89c2aa6a5a291c39de265e3abc96ac8d86e73113 /Source/TableContent.m | |
parent | 95f796e8c75aeb13f4e1190d9ec08feecc35aba6 (diff) | |
download | sequelpro-f0b12b052c2bfe5cdb197f9adb31f8b7136ada66.tar.gz sequelpro-f0b12b052c2bfe5cdb197f9adb31f8b7136ada66.tar.bz2 sequelpro-f0b12b052c2bfe5cdb197f9adb31f8b7136ada66.zip |
• subclassed the editSheet textView
- added drag&drop feature of file content or path resp.
- added feature to in/decrease font size via ⌘+/- or two-finger zoom gesture
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index dd4f0981..6655a53b 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -2477,7 +2477,6 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn /** * Traps enter and return key and closes editSheet instead of inserting a linebreak when user hits return. - * Catch ⌘+ and ⌘- to de/increase font size of aTextView */ - (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector { @@ -2488,29 +2487,8 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn [NSApp stopModalWithCode:1]; return YES; } - else if([[NSApp currentEvent] modifierFlags] & NSCommandKeyMask) - { - // increase text size by 1; ⌘+ and numpad + - if([[[NSApp currentEvent] charactersIgnoringModifiers] isEqualToString:@"+"]) - { - [aTextView makeTextSizeLarger]; - return YES; - } - // decrease text size by 1; ⌘- and numpad - - else if([[[NSApp currentEvent] charactersIgnoringModifiers] isEqualToString:@"-"]) - { - [aTextView makeTextSizeSmaller]; - return YES; - } - else - { - return NO; - } - } else - { return NO; - } } return NO; } |