aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindow.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-08-16 00:07:03 +0000
committerrowanbeentje <rowan@beent.je>2011-08-16 00:07:03 +0000
commit22f2e47959158cf33704481353a65b6d3b242b88 (patch)
treefdccf10fefb43197065f028017e77cd83b51ab85 /Source/SPWindow.m
parentaee5bc25beb877fb6484031c087b4f93096394eb (diff)
downloadsequelpro-22f2e47959158cf33704481353a65b6d3b242b88.tar.gz
sequelpro-22f2e47959158cf33704481353a65b6d3b242b88.tar.bz2
sequelpro-22f2e47959158cf33704481353a65b6d3b242b88.zip
- Lion compatibility improvement: add support for fullscreen windows, on the main window only; hide SSH/SSL status when entering fullscreen mode, to prevent drawing issues
- Lion compatibility improvement: update tab colours under 10.7 to match system styles - Lion compatibility improvement: fix issues dragging tabs out of windows and into other tab bars - Lion compatibility improvement: fix QuickLook issues under 10.7, including windows which couldn't be closed, fullscreened, or crashes - Fix exceptions in the bundle controller when using tab switching keys - Lion compatibility improvement: use overlay scrollers where possible
Diffstat (limited to 'Source/SPWindow.m')
-rw-r--r--Source/SPWindow.m16
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/SPWindow.m b/Source/SPWindow.m
index 5a485ede..414d043a 100644
--- a/Source/SPWindow.m
+++ b/Source/SPWindow.m
@@ -78,13 +78,17 @@
case '}':
if (([theEvent modifierFlags] & NSDeviceIndependentModifierFlagsMask) == (NSCommandKeyMask | NSShiftKeyMask))
{
- return [[self windowController] selectNextDocumentTab:self];
+ if ([[self windowController] respondsToSelector:@selector(selectNextDocumentTab:)])
+ [[self windowController] selectNextDocumentTab:self];
+ return;
}
break;
case '{':
if (([theEvent modifierFlags] & NSDeviceIndependentModifierFlagsMask) == (NSCommandKeyMask | NSShiftKeyMask))
{
- return [[self windowController] selectPreviousDocumentTab:self];
+ if ([[self windowController] respondsToSelector:@selector(selectPreviousDocumentTab:)])
+ [[self windowController] selectPreviousDocumentTab:self];
+ return;
}
break;
@@ -92,13 +96,17 @@
case NSRightArrowFunctionKey:
if (([theEvent modifierFlags] & NSDeviceIndependentModifierFlagsMask) == (NSCommandKeyMask | NSAlternateKeyMask | NSNumericPadKeyMask | NSFunctionKeyMask))
{
- return [[self windowController] selectNextDocumentTab:self];
+ if ([[self windowController] respondsToSelector:@selector(selectNextDocumentTab:)])
+ [[self windowController] selectNextDocumentTab:self];
+ return;
}
break;
case NSLeftArrowFunctionKey:
if (([theEvent modifierFlags] & NSDeviceIndependentModifierFlagsMask) == (NSCommandKeyMask | NSAlternateKeyMask | NSNumericPadKeyMask | NSFunctionKeyMask))
{
- return [[self windowController] selectPreviousDocumentTab:self];
+ if ([[self windowController] respondsToSelector:@selector(selectPreviousDocumentTab:)])
+ [[self windowController] selectPreviousDocumentTab:self];
+ return;
}
break;
}