Changeset 1913
- Timestamp:
- 04/27/12 08:14:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/IsocatSearchPopUp.mxml
r856 r1913 12 12 <mx:Script> 13 13 <![CDATA[ 14 import clarin.cmdi.componentregistry.services.IsocatService; 15 14 16 import mx.controls.TextInput; 15 import clarin.cmdi.componentregistry.services.IsocatService;16 17 import mx.managers.PopUpManager; 17 18 … … 48 49 } 49 50 50 private function handleSearch(event: KeyboardEvent):void {51 if (event.keyCode == Keyboard.ENTER){52 searchService.load(searchBox.text, isocatSearchType); 53 } 51 private function handleSearch(event:Event):void { 52 if(event is MouseEvent || (event is KeyboardEvent && KeyboardEvent(event).keyCode == Keyboard.ENTER)){ 53 searchService.load(searchBox.text, isocatSearchType); 54 } 54 55 } 55 56 ]]> … … 62 63 keyDown="handleSearch(event);" 63 64 minWidth="300"/> 65 <mx:Button id="searchButton" 66 label="Search" 67 click="handleSearch(event);" /> 64 68 <mx:Label text="{dataGrid.dataProvider.length} results"/> 65 69 </mx:HBox>
Note: See TracChangeset
for help on using the changeset viewer.