зеркало из https://github.com/mozilla/pjs.git
313083 Right-click in empty tab bar space has no contextual menu. Add a contextual menu. Patch by Chris Lawson <bugzilla@chrislawson.net>. r=smorgan sr=me a=me
This commit is contained in:
Родитель
9f9f907af2
Коммит
65ce6cfbd4
Двоичные данные
camino/resources/localized/English.lproj/BrowserWindow.nib/keyedobjects.nib
сгенерированный
Двоичные данные
camino/resources/localized/English.lproj/BrowserWindow.nib/keyedobjects.nib
сгенерированный
Двоичный файл не отображается.
|
@ -167,8 +167,7 @@ static const int kOverflowButtonMargin = 1;
|
|||
{
|
||||
NSPoint clickPoint = [self convertPoint:[theEvent locationInWindow] fromView:nil];
|
||||
TabButtonCell *clickedTabButton = [self buttonAtPoint:clickPoint];
|
||||
// XXX should there be a menu if someone clicks in the tab bar where there is no tab?
|
||||
return (clickedTabButton) ? [clickedTabButton menu] : nil;
|
||||
return (clickedTabButton) ? [clickedTabButton menu] : [self menu];
|
||||
}
|
||||
|
||||
-(void)mouseDown:(NSEvent*)theEvent
|
||||
|
|
Загрузка…
Ссылка в новой задаче