开发者

Flex - Disable Soft Keyboard with checkbox

开发者 https://www.devze.com 2023-04-11 06:42 出处:网络
I have a TextArea and a Checkbox. I want to disable t开发者_开发问答he SoftKeyboard when the checkbox is checcked, so the TextArea can be scrolled without it popping up. I can get the keyboard to disa

I have a TextArea and a Checkbox. I want to disable t开发者_开发问答he SoftKeyboard when the checkbox is checcked, so the TextArea can be scrolled without it popping up. I can get the keyboard to disable when the Checkbox is clicked, but as soon as I click on the TextArea to scroll it pops back up. How do I enable/disable the keyboard with a checkbox? Below is my code:

protected function toggle_keyboard_clickHandler(event:MouseEvent):void
        {
            checkboxStatus = event.target.selected;
            if(checkboxStatus == true){
            SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE;
            }else{}
        }


A SoftKeyboardEvent object is dispatched when a software-driven keyboard is activated or de-activated on a device or operating system. A SoftKeyboardEvent object is dispatched by a TextField or InteractiveObject that has the needsSoftKeyboardproperty set to true.

0

精彩评论

暂无评论...
验证码 换一张
取 消