Flex 4.6 hide/dismiss softkeyboard

For flex mobile android apps I have mimicked the intuitive ios way of tapping on the background to remove the softkeyboard as follows:

import spark.components.supportClasses.* protected function application1_clickHandler(event:MouseEvent):void { if(event.target is StyleableTextField || event.target is StyleableStageText){ // ignore because came from a textInput }else{ stage.focus = null // to remove the softkeyboard } }

参考:http://stackoverflow.com/questions/8520523/flex-4-6-hide-dismiss-softkeyboard

你可能感兴趣的:(Flex 4.6 hide/dismiss softkeyboard)