Bug 613710: Fix handling of cmd-. keyboard equivalent, don't let Mac OS X convert it to a cancelOperation: action. r=smichaud a=blocking2.0final+

This commit is contained in:
Josh Aas 2011-01-28 09:11:29 -05:00
Родитель a3e925832b
Коммит 1405b2efd6
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -2166,6 +2166,17 @@ static const NSString* kStateShowsToolbarButton = @"showsToolbarButton";
return mDPI;
}
- (BOOL)respondsToSelector:(SEL)aSelector
{
// Claim the window doesn't respond to this so that the system
// doesn't steal keyboard equivalents for it. Bug 613710.
if (aSelector == @selector(cancelOperation:)) {
return NO;
}
return [super respondsToSelector:aSelector];
}
- (void) doCommandBySelector:(SEL)aSelector
{
// We override this so that it won't beep if it can't act.