Actions
Bug #3267
closed[wt-3.3.3] WTableView::clicked signal is emitted only on left mouse click
Start date:
06/05/2014
Due date:
% Done:
0%
Estimated time:
Description
Hi,
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.
Regards,
Stoycho
Updated by Koen Deforche about 10 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Updated by Koen Deforche about 10 years ago
- Status changed from InProgress to Resolved
Hey,
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() ?)
Regards,
koen
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed
Actions