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:
silver%warwickcompsoc.co.uk 2004-01-22 13:49:22 +00:00
parent c23891b138
commit 0ea22dfdac
3 changed files with 6 additions and 3 deletions

View File

@ -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"];

View File

@ -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"],

View File

@ -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;