当我左键单击(在dartium中)时,我的听众的断点被击中,但是当我右键单击它时,我是否设置了错误或者这是一个已知错误?
Dart编辑器版本0.6.21_r26639 Dart SDK版本0.6.21.3_r26639
html.onClick.listen((MouseEvent event){
if(event.button == 2){ //left click hits breakpoint on this line - right clicking doesnt
contextMenu.show(this, left: event.clientX - 5, top: event.clientY - 5);
contextMenu.html.onMouseOut.listen((Event event){
contextMenu.hide();
});
}
});