Bug 366901 Edit->Copy doesn't work in the SuiteRunner Error Console

p=philip.chee@gmail.com r/sr=neil
This commit is contained in:
bugzilla%arlen.demon.co.uk 2007-01-15 15:16:57 +00:00
Родитель 4ca1952be9
Коммит 1f25ab7c1a
1 изменённых файлов: 45 добавлений и 1 удалений

Просмотреть файл

@ -51,6 +51,50 @@
<overlay id="consoleOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"><![CDATA[
/* :::::::: Command Controller for the Window ::::::::::::::: */
var ConsoleController =
{
supportsCommand: function (aCommand)
{
switch (aCommand) {
case "cmd_copy":
return true;
default:
return false;
}
},
isCommandEnabled: function (aCommand)
{
switch (aCommand) {
case "cmd_copy":
return isItemSelected();
default:
return false;
}
},
doCommand: function (aCommand)
{
switch (aCommand) {
case "cmd_copy":
copyItemToClipboard();
break;
default:
break;
}
},
onEvent: function (aEvent)
{
}
}
top.controllers.insertControllerAt(0, ConsoleController);
]]></script>
<commandset id="consoleCommands">
<commandset id="tasksCommands"/>
<command id="cmd_quit"/>
@ -73,7 +117,7 @@
</menu>
<menu id="menu_Edit">
<menupopup onpopupshowing="updateCopyMenu()">
<menupopup onpopupshowing="goUpdateCommand('cmd_copy')">
<menuitem id="menu_copy"/>
</menupopup>
</menu>