зеркало из https://github.com/mozilla/gecko-dev.git
Bug 231621 Add a middle-click action for the Chatzilla client window (open in new tab, configurable)
patch by Andreas Kunz (durbacher@gmx.de) r=silver
This commit is contained in:
Родитель
c23891b138
Коммит
0ea22dfdac
|
@ -107,13 +107,15 @@ function onTabClick (e, id)
|
|||
|
||||
function onMessageViewClick(e)
|
||||
{
|
||||
if (e.which != 1)
|
||||
if ((e.which != 1) && (e.which != 2))
|
||||
return;
|
||||
|
||||
var cx = getMessagesContext(null, e.target);
|
||||
var command;
|
||||
|
||||
if (e.metaKey || e.altKey)
|
||||
if (e.which == 2)
|
||||
command = client.prefs["messages.middleClick"];
|
||||
else if (e.metaKey || e.altKey)
|
||||
command = client.prefs["messages.metaClick"];
|
||||
else if (e.ctrlKey)
|
||||
command = client.prefs["messages.ctrlClick"];
|
||||
|
|
|
@ -96,6 +96,7 @@ function initPrefs()
|
|||
["messages.click", "goto-url"],
|
||||
["messages.ctrlClick", "goto-url-newwin"],
|
||||
["messages.metaClick", "goto-url-newtab"],
|
||||
["messages.middleClick", "goto-url-newtab"],
|
||||
["motif.dark", "chrome://chatzilla/skin/output-dark.css"],
|
||||
["motif.light", "chrome://chatzilla/skin/output-light.css"],
|
||||
["motif.default", "chrome://chatzilla/skin/output-default.css"],
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* Samuel Sieb, samuel@sieb.net, MIRC color codes, munger menu, and various
|
||||
*/
|
||||
|
||||
const __cz_version = "0.9.54";
|
||||
const __cz_version = "0.9.57";
|
||||
const __cz_condition = "green";
|
||||
|
||||
var warn;
|
||||
|
|
Загрузка…
Ссылка в новой задаче