[英]Spark List control - 'n' key moves to next row
I've created an editable list. 我创建了一个可编辑的列表。 It means I have an sparks:List with itemRenderes with TextInputs.
这意味着我有一个sparks:List和带有TextInputs的itemRenderes。 When I type in text fields, the 'n' key moves selection to next list item.
当我在文本字段中键入内容时,“ n”键会将选择移至下一个列表项。 How to get rid of this ?
如何摆脱这个? Before Flash Player update the 't' key moved me to the first list item.
在Flash Player更新之前,“ t”键将我移至第一个列表项。 Now it doesn't.
现在没有。
OK, I've got it. 好,知道了 If someone needs a solution :
如果有人需要解决方案:
Just add an high priority event handler : 只需添加一个高优先级的事件处理程序:
this.articleList.addEventListener(KeyboardEvent.KEY_DOWN,
articleList_keyDownHandler, false, int.MAX_VALUE);
and the handler : 和处理程序:
protected function articleList_keyDownHandler(event:KeyboardEvent):void
{
event.preventDefault();
event.stopImmediatePropagation();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.