AS3 AIR RequestSoftKeyboard在Windows上不起作用 [英] AS3 AIR RequestSoftKeyboard not working on Windows

查看:153
本文介绍了AS3 AIR RequestSoftKeyboard在Windows上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用以下方法在Windows上启动虚拟键盘:

I tried to launch a virtual keyboard on Windows using this:

_txtInputName = new TextField();
_txtInputName.type = TextFieldType.INPUT;
_txtInputName.needsSoftKeyboard = true;
_txtInputName.addEventListener(FocusEvent.FOCUS_IN, onFocus );

private function onFocus(e:FocusEvent):void
{
    _txtInputName.requestSoftKeyboard();
}

不幸的是,软键盘没有显示。我想念什么吗?我是否必须在application.xml上添加一些内容?

Unfortunaly, the softkeyboard doesn't show up. Am I missing something? Does I have to add something on the application.xml?

非常感谢!

推荐答案

TextField不是与本机键盘处理兼容的对象类型。作为使用TextField的编码人员,意味着根本不使用本机键盘。因此,您的问题的简单答案是:

TextField is not an object type compatible with native keyboard handling. As a coder using a TextField does mean not using native keyboard at all. SO simple answer to your question is this:

当然,它不起作用,因为它不是故意的。

Of course it's not working since it's not mean to.

下一页:为了在AIR平台上提供本机键盘支持,实现了StageText内置类,并且是任何想要处理本机键盘的编码人员都应该使用的类。
http://help.adobe .com / en_US / FlashPlatform / reference / actionscript / 3 / flash / text / StageText.html

Next: To provide native keyboard support on the AIR platform the StageText built-in class was implemented and is the one any coder wanting to handle native keyboard should use. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/StageText.html

这篇关于AS3 AIR RequestSoftKeyboard在Windows上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆