Bug 672561 - "awDocumentKeyPress is not defined" when opening Mailing List dialog [New List]. r=Neil a=Callek
authorJens Hatlak <jh@junetz.de>
Wed, 10 Aug 2011 20:40:07 +0200
changeset 8365 ab422cc8f58cf8c8bf1060a54d9a8727863a4b03
parent 8364 a068360cfbef0771ba225775f5aba533eb986755
child 8366 6008655dbf7f8d1e7e276f56bc9d5174cbc6c51b
push id84
push userbugzilla@standard8.plus.com
push dateTue, 16 Aug 2011 21:25:04 +0000
treeherdercomm-beta@6970c86be3cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, Callek
bugs672561
Bug 672561 - "awDocumentKeyPress is not defined" when opening Mailing List dialog [New List]. r=Neil a=Callek
suite/mailnews/compose/addressingWidgetOverlay.js
--- a/suite/mailnews/compose/addressingWidgetOverlay.js
+++ b/suite/mailnews/compose/addressingWidgetOverlay.js
@@ -1026,16 +1026,25 @@ function awSizerResized(aSplitter)
   // set the height on the listbox rather than on the toolbox
   var listbox = document.getElementById("addressingWidget");
   listbox.height = listbox.boxObject.height;
   // remove all the heights set on the splitter's previous siblings
   for (let sib = aSplitter.previousSibling; sib; sib = sib.previousSibling)
     sib.removeAttribute("height");
 }
 
+function awDocumentKeyPress(event)
+{
+  try {
+    var id = event.target.id;
+    if (id.substr(0, 11) == 'addressCol1')
+      awRecipientKeyPress(event, event.target);
+  } catch (e) { }
+}
+
 function awRecipientInputCommand(event, inputElement)
 {
   gContentChanged=true; 
   setupAutocomplete(); 
 }
 
 // Given an arbitrary block of text like a comma delimited list of names or a names separated by spaces,
 // we will try to autocomplete each of the names and then take the FIRST match for each name, adding it the