app-inventor-gallery / aig

App Inventor Community Gallery
10 stars 8 forks source link

Pressing Enter to submit a comment presses wrong button #111

Closed derrell closed 12 years ago

derrell commented 12 years ago

Instead of pressing the Add button to submit the comment, it presses the Search button on FindApps.

derrell commented 12 years ago

aiagallery.module.dgallery.findapps.CriteriaSearch uses a qx.ui.core.Command object to associate pressing the Enter key from anyplace on the page with a click on the Search button. When findapps receives a "disappear" event, the Command should be removed from the button, and when it again receives an "appear" event, the Command should be reactivated. This may be most easily implemented by adding a getter method to CriteriaSearch to retrieve this.__butSearch, and set its Command to null or to a qx.ui.core.Command object as is done on line CriteriaSearch.js:145.

@mijoda to you

derrell commented 12 years ago

Pulled.