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.
|
// Don't do anything special with right-mouse clicks. They're probably clicks on context menu items.
|
||||||
|
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
if (meta || (middle && middleUsesTabs)) {
|
if (meta || (middle && middleUsesTabs))
|
||||||
#else
|
#else
|
||||||
if (ctrl || (middle && middleUsesTabs)) {
|
if (ctrl || (middle && middleUsesTabs))
|
||||||
#endif
|
#endif
|
||||||
if (shift)
|
return shift ? "tabshifted" : "tab";
|
||||||
return "tabshifted";
|
|
||||||
else
|
if (alt)
|
||||||
return "tab";
|
|
||||||
}
|
|
||||||
else if (alt) {
|
|
||||||
return "save";
|
return "save";
|
||||||
}
|
|
||||||
else if (shift || (middle && !middleUsesTabs)) {
|
if (shift || (middle && !middleUsesTabs))
|
||||||
return "window";
|
return "window";
|
||||||
}
|
|
||||||
else {
|
return "current";
|
||||||
return "current";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* openUILinkIn opens a URL in a place specified by the parameter |where|.
|
/* openUILinkIn opens a URL in a place specified by the parameter |where|.
|
||||||
|
Loading…
Reference in New Issue
Block a user