mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 539884 - else-after-return in whereToOpenLink. r=gavin
This commit is contained in:
parent
31276f0b51
commit
4eb72a5b39
@ -143,24 +143,19 @@ function whereToOpenLink( e, ignoreButton, ignoreAlt )
|
||||
// Don't do anything special with right-mouse clicks. They're probably clicks on context menu items.
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
if (meta || (middle && middleUsesTabs)) {
|
||||
if (meta || (middle && middleUsesTabs))
|
||||
#else
|
||||
if (ctrl || (middle && middleUsesTabs)) {
|
||||
if (ctrl || (middle && middleUsesTabs))
|
||||
#endif
|
||||
if (shift)
|
||||
return "tabshifted";
|
||||
else
|
||||
return "tab";
|
||||
}
|
||||
else if (alt) {
|
||||
return shift ? "tabshifted" : "tab";
|
||||
|
||||
if (alt)
|
||||
return "save";
|
||||
}
|
||||
else if (shift || (middle && !middleUsesTabs)) {
|
||||
|
||||
if (shift || (middle && !middleUsesTabs))
|
||||
return "window";
|
||||
}
|
||||
else {
|
||||
return "current";
|
||||
}
|
||||
|
||||
return "current";
|
||||
}
|
||||
|
||||
/* openUILinkIn opens a URL in a place specified by the parameter |where|.
|
||||
|
Loading…
Reference in New Issue
Block a user