[wt-3.3.3] WTableView::clicked signal is emitted only on left mouse click
WTableView::clicked signal is emitted only on left mouse click. Here an extract of my code:
void tableClicked(const WMouseEvent& event); ... tableView_->setAttributeValue("oncontextmenu","event.cancelBubble = true; event.returnValue = false; return false;"); tableView_->clicked().connect(boost::bind(&tableClicked,_2));
The rest of the code is not relevant, I suppose.
Updated by Koen Deforche over 7 years ago
- Status changed from InProgress to Resolved
This report confused me too --- but that's because I forgot that indeed a browser will not report right clicks; this has nothing to do with WTableView.
(There is in fact a non-standard quite portable way of getting right mouse clicks which is the 'oncontextmenu' handler, but in practice a workaround is to simply use mouseWentUp() ?)