diff --git a/mozilla/calendar/base/content/calendar-multiday-view.xml b/mozilla/calendar/base/content/calendar-multiday-view.xml index e2a127098d0..3b678958cb1 100644 --- a/mozilla/calendar/base/content/calendar-multiday-view.xml +++ b/mozilla/calendar/base/content/calendar-multiday-view.xml @@ -1195,8 +1195,9 @@ + + anonid="event-name-textbox" crop="right" hidden="true" wrap="true"/> @@ -1211,7 +1212,15 @@ if (orient == "vertical") otherorient = "horizontal"; var self = this; - this.eventNameElement.onblur = function() { self.stopEditing(); }; + this.eventNameInput.onblur = function() { self.stopEditing(true); }; + this.eventNameInput.onkeypress = function(event) { + // save on enter + if (event.keyCode == 13) + self.stopEditing(true); + // abort on escape + else if (event.keyCode == 27) + self.stopEditing(false); + }; ]]> @@ -1253,8 +1262,12 @@ ]]> - + + + @@ -1301,33 +1316,45 @@ +