Project

General

Profile

Bug #3267

[wt-3.3.3] WTableView::clicked signal is emitted only on left mouse click

Added by Anonymous about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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

#1

Updated by Koen Deforche over 7 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
#2

Updated by Koen Deforche over 7 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

#3

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF