【发布时间】:2014-10-23 02:10:41
【问题描述】:
我已经在我的 Adobe Air 中设置了 TexInput 控件的 tabindex 可以正常使用 tab 键。现在我想用回车键做同样的事情。我的意思是当我在 TextInput 中按下回车键时,应该选择下一个控件。
在 C# 中,我们可以对 SendKeys 执行相同的操作,据我所知,Adobe Air 中没有这种方式。
这是我添加的活动
// get key presses only when the textfield is being edited
inputText.addEventListener(KeyboardEvent.KEY_DOWN,handler);
function handler(event:KeyboardEvent){
// if the key is ENTER
if(event.charCode == 13){
// WHAT ???
}
}
【问题讨论】:
标签: actionscript-3 air textinput