зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a3e925832b
Коммит
1405b2efd6
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче