         else if (event.keyCode == Keyboard.ESCAPE)
         {
             // Restore the previous selectedItem
-            textInput.text = itemToLabel(selectedItem);
+			if (textInput)
+				textInput.text = itemToLabel(selectedItem);
             changeHighlightedSelection(selectedIndex);
         }
     }

        // always commit the selection if we focus out        
        if (!isDropDownOpen)
        {
            if (textInput.text != itemToLabel(selectedItem))
                applySelection();
        }
            

     */
    override protected function isOurFocus(target:DisplayObject):Boolean
    {
		if (!textInput)
			return false;
		
        return target == textInput.textDisplay;
    }
    
