Project

General

Profile

Actions

Bug #3267

closed

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

Added by Anonymous almost 10 years ago. Updated over 9 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

Actions #1

Updated by Koen Deforche over 9 years ago

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

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

Actions #3

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF