diff options
author | wei <> | 2006-12-03 23:29:46 +0000 |
---|---|---|
committer | wei <> | 2006-12-03 23:29:46 +0000 |
commit | 79744dc6fe2393a36eb9fa4714134c490b999f89 (patch) | |
tree | 49f15483e11357fe2e298f28705d99bfb382281b /framework/Web/Javascripts/js/debug | |
parent | 256911855a051525575ecd8aa8fae9b39ab6d7b5 (diff) |
Fixed #400
Diffstat (limited to 'framework/Web/Javascripts/js/debug')
-rw-r--r-- | framework/Web/Javascripts/js/debug/logger.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/Web/Javascripts/js/debug/logger.js b/framework/Web/Javascripts/js/debug/logger.js index 5d465d56..37e5028e 100644 --- a/framework/Web/Javascripts/js/debug/logger.js +++ b/framework/Web/Javascripts/js/debug/logger.js @@ -200,7 +200,7 @@ LogConsole.prototype = { // Methods
// -------
- initialize : function() {
+ initialize : function(toggleKey) {
this.outputCount = 0
this.tagPattern = Cookie.get('tagPattern') || ".*"
@@ -283,6 +283,12 @@ LogConsole.prototype = { this.logElement.style.position="fixed";
this.logElement.style.bottom="0px";
}
+ var self=this;
+ Event.observe(document, 'keydown', function(e)
+ {
+ if((e.altKey==true) && Event.keyCode(e) == toggleKey ) //Alt+J | Ctrl+J
+ self.toggle();
+ });
// Listen to the logger....
Logger.onupdate.addListener(this.logUpdate.bind(this))
@@ -452,12 +458,6 @@ LogConsole.prototype = { }
}
-// Load the Console when the window loads
-var logConsole;
-Event.OnLoad(function() { logConsole = new LogConsole()});
-
-
-
// -------------------------
// Helper Functions And Junk
|