Adobe AIR 2 未检测到 TLF TextField 内的输入
此代码在 Flash 中工作,但是当我尝试使用 adobe air 2 运行时,未检测到 Enter 键,而是 ctrl+enter 工作。如何获得这项工作?提前输入
txtTLF 是 TLF TEXT EDITABLE
import flash.events.TextEvent;
txtTLF.addEventListener(TextEvent.TEXT_INPUT, teclado);
function teclado(e:TextEvent):void{
if(e.text == String.fromCharCode(13)){
e.preventDefault();
code();
}
}
This code work in flash, but when i try run using adobe air 2, the enter key is not detected, but instead ctrl+enter work. how to get this work? Ty in advance
txtTLF is TLF TEXT EDITABLE
import flash.events.TextEvent;
txtTLF.addEventListener(TextEvent.TEXT_INPUT, teclado);
function teclado(e:TextEvent):void{
if(e.text == String.fromCharCode(13)){
e.preventDefault();
code();
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案,不要忘记真相,代码是:
I find the answer, DONT FORGET THE TRUE, the code is: