diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-15 23:23:54 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-15 23:23:54 +0000 |
commit | 487df2675fdc65933010ccf08ae0f5aa4ad92842 (patch) | |
tree | 78a2d4478604ce7c72dc6e17f7470bc055f6ff8a /Source/SPTextView.m | |
parent | cd4ae516d0db053c1bb818e617cf5b5bbebdaafc (diff) | |
download | sequelpro-487df2675fdc65933010ccf08ae0f5aa4ad92842.tar.gz sequelpro-487df2675fdc65933010ccf08ae0f5aa4ad92842.tar.bz2 sequelpro-487df2675fdc65933010ccf08ae0f5aa4ad92842.zip |
• Bundle support
- started to populate the main menu item Bundles [still hidden]
- enabled key equivalents for NSTextViews
- distinguishes between Query Editor scope and text input scope via menu item validation inside main menu Bundles
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r-- | Source/SPTextView.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index 21ab5260..f83b2549 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -2991,7 +2991,17 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) * Disable the search in the MySQL help function when getRangeForCurrentWord returns zero length. */ - (BOOL)validateMenuItem:(NSMenuItem *)menuItem -{ +{ + + if([menuItem action] == @selector(executeBundleItemForEditor:)) + { + return YES; + } + if([menuItem action] == @selector(executeBundleItemForInputField:)) + { + return NO; + } + // Enable or disable the search in the MySQL help menu item depending on whether there is a // selection and whether it is a reasonable length. if ([menuItem action] == @selector(showMySQLHelpForCurrentWord:)) { |