我正在尝试将4.9 DHTML应用程序迁移到5.0。当我这样做时,我得到一个错误
ReferenceError: EVENT_OBJECT_FOCUS is not defined
[Break On This Error]
this.sendAAEvent(0,EVENT_OBJECT_FOCUS)
在我看到这组代码的行中。从类名称来看,它看起来像是一个单选按钮类。
$lzc$class_baselistitem,["tagname","radiobutton","children",[{attrs:{$CSSDescriptor:{},$attributeDescriptor:{types:LzNode.mergeAttributeTypes(lz.ClassAttributeTypes["accessible"],{EVENT_OBJECT_FOCUS:"number",EVENT_OBJECT_NAMECHANGE:"number",EVENT_OBJECT_SELECTION:"number",EVENT_OBJECT_STATECHANGE:"number"})},$classrootdepth:1,$delegates:["onselected","$mb5",null,"ontext","$mb6",null],$mb5:function($0){
if(!this.isinited){
return
};if(this.selected){
this.sendAAEvent(0,EVENT_OBJECT_FOCUS)
};this.sendAAEvent(0,EVENT_OBJECT_STATECHANGE,true)
},$mb6:function($0){
this.sendAAEvent(0,EVENT_OBJECT_NAMECHANGE)
},EVENT_OBJECT_FOCUS:32773,EVENT_OBJECT_NAMECHANGE:32780,EVENT_OBJECT_SELECTION:32774,EVENT_OBJECT_STATECHANGE:32778,name:"accessible",updateFocus:function($0){
if($0){
this.sendAAEvent(0,EVENT_OBJECT_SELECTION);this.sendAAEvent(0,EVENT_OBJECT_FOCUS)
};this.sendAAEvent(0,EVENT_OBJECT_STATECHANGE,true)
}},"class":LzState}
这种情况正在发生,因为radio.lzx。有人遇到过像这样的问题。
我目前正在使用FF 16.0 windows xp sp 3和Openlaszlo 5.0.x revision 19830
答案 0 :(得分:1)
我会尝试在不同的操作系统上使用不同的Firefox版本或Firefox。我觉得它可能是Firefox的一个特定版本中的Firefox错误。
可以在OpenLaszlo的JIRA问题LPP-7594 Jaws Accessibility support needed for Radioboxes中找到EVENT_OBJECT_FOCUS
的唯一提及。似乎没有提交任何错误。