diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-10 14:51:47 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-10 14:51:47 +0000 |
commit | 2946f03889ee2ba248208bf10313ded6bcb2f287 (patch) | |
tree | b2a7aab14ee4fb5bf0cd7dc89eec24943176f625 /Source | |
parent | f8f8a867b96a5559a136bfa3e671788e6fd4a31c (diff) | |
download | sequelpro-2946f03889ee2ba248208bf10313ded6bcb2f287.tar.gz sequelpro-2946f03889ee2ba248208bf10313ded6bcb2f287.tar.bz2 sequelpro-2946f03889ee2ba248208bf10313ded6bcb2f287.zip |
Add a 'Keyboard Shortcuts' menu item to the 'Help' menu which opens the page http://www.sequelpro.com/docs/Keyboard_Shortcuts.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPAppController.h | 1 | ||||
-rw-r--r-- | Source/SPAppController.m | 8 | ||||
-rw-r--r-- | Source/SPConstants.h | 1 | ||||
-rw-r--r-- | Source/SPConstants.m | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPAppController.h b/Source/SPAppController.h index 3f661d08..86b9db13 100644 --- a/Source/SPAppController.h +++ b/Source/SPAppController.h @@ -52,6 +52,7 @@ - (IBAction)visitHelpWebsite:(id)sender; - (IBAction)visitFAQWebsite:(id)sender; - (IBAction)provideFeedback:(id)sender; +- (IBAction)viewKeyboardShortcuts:(id)sender; // Getters - (SPPreferenceController *)preferenceController; diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 7c5db4eb..5a515f02 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -414,6 +414,14 @@ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPContactURL]]; } +/** + * Opens the 'Keyboard Shortcuts' page in the default browser. + */ +- (IBAction)viewKeyboardShortcuts:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPKeyboardShortcutsURL]]; +} + #pragma mark - #pragma mark Feedback reporter delegate methods diff --git a/Source/SPConstants.h b/Source/SPConstants.h index c21f6d24..fd20509b 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -182,6 +182,7 @@ extern NSString *SPDonationsURL; extern NSString *SPFAQURL; extern NSString *SPDocumentationURL; extern NSString *SPContactURL; +extern NSString *SPKeyboardShortcutsURL; // Toolbar constants diff --git a/Source/SPConstants.m b/Source/SPConstants.m index 2a8822e0..23f1278f 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -150,6 +150,7 @@ NSString *SPDonationsURL = @"http://www.sequelpro.com/do NSString *SPFAQURL = @"http://www.sequelpro.com/docs/Frequently_Asked_Questions"; NSString *SPDocumentationURL = @"http://www.sequelpro.com/docs/"; NSString *SPContactURL = @"http://www.sequelpro.com/docs/Contact_the_developers"; +NSString *SPKeyboardShortcutsURL = @"http://www.sequelpro.com/docs/Keyboard_Shortcuts"; // Toolbar constants |