1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 06:04:12 +01:00

More bootstrap work.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-23 22:35:49 -05:00
parent 909a658338
commit c396c279c4
5 changed files with 51 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ const CommandWidgets = Class("CommandWidgets", {
onblur={_commandline + ".onMultilineInputEvent(event);"}/>
</vbox>
</vbox>
</e4x>.*
</e4x>.elements()
});
this.elements = {};

View File

@@ -13,7 +13,7 @@
*/
const Events = Module("events", {
init: function () {
let _events = "if (window.dactyl &and; dactyl.modules.loaded.events) return dactyl.modules.events"
let _events = "if (window.dactyl && dactyl.modules.loaded.events) return dactyl.modules.events"
util.overlayWindow(window, {
append: <e4x xmlns={XUL}>
<window id={document.documentElement.id}>
@@ -21,11 +21,11 @@ const Events = Module("events", {
from: http://developer.mozilla.org/en/docs/XUL_Tutorial:Updating_Commands !-->
<!-- I don't think we really need this. Kris -->
<commandset id="onPentadactylFocus" commandupdater="true" events="focus"
oncommandupdate="{_events}.onFocusChange(event);"/>
oncommandupdate={_events + ".onFocusChange(event);"}/>
<commandset id="onPentadactylSelect" commandupdater="true" events="select"
oncommandupdate="{_events}.onSelectionChange(event);"/>
oncommandupdate={_events + ".onSelectionChange(event);"}/>
</window>
</e4x>.*
</e4x>.elements()
});
this._fullscreen = window.fullScreen;

View File

@@ -12,7 +12,7 @@ const StatusLine = Module("statusline", {
init: function () {
let _commandline = "if (window.dactyl) return dactyl.modules.commandline";
let append = <e4x xmlns={XUL} xmlns:dactyl={NS}>
let prepend = <e4x xmlns={XUL} xmlns:dactyl={NS}>
<statusbar id="status-bar" dactyl:highlight="StatusLine StatusNormal">
<!-- insertbefore="dactyl.statusBefore;" insertafter="dactyl.statusAfter;" -->
<hbox
@@ -45,12 +45,12 @@ const StatusLine = Module("statusline", {
</statusbar>
</e4x>;
for each (let attr in append..@key)
for each (let attr in prepend..@key)
attr.parent().@id = "dactyl-statusline-field-" + attr;
util.overlayWindow(window, {
objects: this.widgets = { get status() this.container },
append: append.*
prepend: prepend.elements()
});
this._statusLine = document.getElementById("status-bar");