Bug 348481 - Unifinder: focus is lost when moving between events via up & down key;patch=Przemyslaw Bialik;r=berend
authorBerend Cornelius [:berend] <berend.cornelius@sun.com>
Tue, 21 Oct 2008 16:25:42 +0200
changeset 670 87e981a9076df39a702b7238637780b41ebb8a08
parent 669 5a17ea83a93bf2f076520e59d0e7703677a6cc38
child 671 162b4859df90484a77b5917bacb36210d803e276
push idunknown
push userunknown
push dateunknown
reviewersberend
bugs348481
Bug 348481 - Unifinder: focus is lost when moving between events via up & down key;patch=Przemyslaw Bialik;r=berend
calendar/base/content/calendar-unifinder.js
--- a/calendar/base/content/calendar-unifinder.js
+++ b/calendar/base/content/calendar-unifinder.js
@@ -370,16 +370,17 @@ function unifinderSelect(event) {
         currentView().goToDay(selectedItems[0].startDate);
     }
 
     // Set up the selected items in the view. Pass in true, so we don't end
     // up in a circular loop
     currentView().setSelectedItems(selectedItems.length, selectedItems, true);
     currentView().centerSelectedItems();
     calendarController.onSelectionChanged({detail: selectedItems});
+    document.getElementById("unifinder-search-results-tree").focus();
 }
 
 function unifinderKeyPress(aEvent) {
     const kKE = Components.interfaces.nsIDOMKeyEvent;
     switch (aEvent.keyCode) {
         case 13:
             // Enter, edit the event
             editSelectedEvents();