From a11246711a56d763019bf6bb23a7854d5dc550ac Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 28 Sep 2010 12:02:47 -0400 Subject: [PATCH] Add *basic* context menu to the MOW. --HG-- extra : rebase_source : c1ce793f6242b8046b3a15cdcc7cdd0d16b43af5 --- common/content/commandline.js | 13 +++++++------ common/content/dactyl.xul | 32 ++++++++++++++++++++------------ pentadactyl/TODO | 1 - 3 files changed, 27 insertions(+), 19 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 79f9edb2..68042d7e 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -149,6 +149,8 @@ const CommandWidgets = Class("CommandWidgets", { multilineOutput: Class.memoize(function () { let elem = document.getElementById("dactyl-multiline-output"); elem.contentDocument.body.id = "dactyl-multiline-output-content"; + document.getElementById("dactyl-context-copylink").style.listStyleImage = + util.computedStyle(document.getElementById("context-copylink")).listStyleImage; return elem; }), multilineInput: Class.memoize(function () document.getElementById("dactyl-multiline-input")), @@ -883,23 +885,22 @@ const CommandLine = Module("commandline", { return dactyl.commands[command](event); else openLink(dactyl.CURRENT_TAB); - break; + return false; case "": case "": case "": openLink({ where: dactyl.NEW_TAB, background: true }); - break; + return false; case "": case "": case "": openLink({ where: dactyl.NEW_TAB, background: false }); - break; + return false; case "": openLink(dactyl.NEW_WINDOW); - break; + return false; } - - return; + return true; } if (this._startHints) { diff --git a/common/content/dactyl.xul b/common/content/dactyl.xul index 43afd231..ddef4798 100644 --- a/common/content/dactyl.xul +++ b/common/content/dactyl.xul @@ -35,15 +35,22 @@ + + + + + oncommandupdate="&events;.onFocusChange(event);"/> + oncommandupdate="&events;.onSelectionChange(event);"/> @@ -51,20 +58,21 @@ therefore we need to put them into a for which that works just fine -->