rem:  var ctrl = this.KEY_CTRL; var exec = function (cmd, arg) { return arguments.length == 1 ? function () { this.execCommand(cmd); } : function () { this.execCommand(cmd, arg); } }  this.addKeyHandler("b", ctrl, exec("bold")); this.addKeyHandler("i", ctrl, exec("italic")); this.addKeyHandler("u", ctrl, exec("underline")); this.addKeyHandler("a", ctrl, exec("selectall"));   this.addKeyHandler("s", ctrl, function () { this.save(true); });  this.addKeyHandler("1", ctrl, exec("formatblock", "h1")); this.addKeyHandler("2", ctrl, exec("formatblock", "h2")); this.addKeyHandler("3", ctrl, exec("formatblock", "h3")); this.addKeyHandler("4", ctrl, exec("formatblock", "h4"));  this.addKeyHandler("\\", ctrl, exec("insertunorderedlist")); if(!dojo.render.html.ie){ this.addKeyHandler("Z", ctrl, exec("redo")); } 
add: this.setupDefaultShortcuts(); 
context: 		fillInTemplate: function(){			// summary: see dojo.widget.DomWidget			dojo.event.topic.publish("dojo.widget.RichText::init", this);			this.open();			// backwards compatibility, needs to be removed			dojo.event.connect(this, "onKeyPressed", this, "afterKeyPress");			dojo.event.connect(this, "onKeyPress", this, "keyPress");			dojo.event.connect(this, "onKeyDown", this, "keyDown");			dojo.event.connect(this, "onKeyUp", this, "keyUp");			// add default some key handlers			var ctrl = this.KEY_CTRL;			var exec = function (cmd, arg) {				return arguments.length == 1 ? function () { this.execCommand(cmd); } :					function () { this.execCommand(cmd, arg); }			}			this.addKeyHandler("b", ctrl, exec("bold"));			this.addKeyHandler("i", ctrl, exec("italic"));			this.addKeyHandler("u", ctrl, exec("underline"));			this.addKeyHandler("a", ctrl, exec("selectall"));			//this.addKeyHandler("k", ctrl, exec("createlink", ""));			//this.addKeyHandler("K", ctrl, exec("unlink"));			this.addKeyHandler("s", ctrl, function () { this.save(true); });			this.addKeyHandler("1", ctrl, exec("formatblock", "h1"));			this.addKeyHandler("2", ctrl, exec("formatblock", "h2"));			this.addKeyHandler("3", ctrl, exec("formatblock", "h3"));			this.addKeyHandler("4", ctrl, exec("formatblock", "h4"));			this.addKeyHandler("\\", ctrl, exec("insertunorderedlist"));			if(!dojo.render.html.ie){				this.addKeyHandler("Z", ctrl, exec("redo"));			}		},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/RichText.js/buggy/www/resources/dojo-ajax/src/widget/RichText.js