Hey all

I apologize ahead of time on this one because I've searched the documentation and google extensively without finding anything that works. How do you detect the enter key when the user is in a text field?

Currently, here is my code:

Code:
 this.controller.setupWidget(    
            "txtSearch",
            this.txtSearchAttributes={                
                hintText:"Search . . .",
                focus:true,
                changeOnKeyPress:true,
				enterSubmits:true
            },
            this.txtSearchModel={
                value:""
            }
        );
        this.txtSearch_PropertyChangeHandler=this.txtSearch_PropertyChange.bind(this);
        Mojo.Event.listen($("txtSearch"), Mojo.Event.propertyChange, this.txtSearch_PropertyChangeHandler);
and my property change handler looks like this:
Code:
 txtSearch_PropertyChange:function(event){
	Mojo.Log.info("in property change");
        var searchValue=this.txtSearchModel["value"];
        $("btnSearch").hide();
        if(searchValue.length>0){
		$("btnSearch").show();
		if(Mojo.Char.isEnterKey(event.keyCode)){
			 this.Search(searchValue);
			}	
		} 	       
    },
When I run it, the event handler fires on every key that I press EXCEPT for my enter key. I can perform my searches by clicking a search button I have setup, but I want to give the user the choice between just hitting enter or tapping the search button. Note that I'm just working in the emulator if that matters.