Project

General

Profile

Actions

Bug #2284

closed

Ctrl-click not deselecting a row when Wt::SelectionMode::SingleSelection is set

Added by John Davidson about 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/04/2013
Due date:
% Done:

0%

Estimated time:

Description

With the following settings on a Wtableview, holding down the control button and clicking on a selected row doesn't deselect the row

tableView = new Wt::WTableView();
tableView->setAlternatingRowColors(true);
tableView->setSelectable(true);
tableView->setSelectionMode(Wt::SelectionMode::SingleSelection);
tableView->setSelectionBehavior(Wt::SelectionBehavior::SelectRows);

However, with the selection mode changed to this:

 tableView->setSelectionMode(Wt::SelectionMode::ExtendedSelection);

control-click works as expected, and deselects a selected row.

I believe control-click should work on a single selection table, too.

John

Actions #1

Updated by Koen Deforche about 11 years ago

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

Hey,

I recall that we did this intentionally because this was the behavior that we had observed somewhere but I agree that in hindsight this was a silly decision.

Regards,

koen

Actions #2

Updated by Koen Deforche almost 11 years ago

  • Status changed from InProgress to Resolved
  • Target version set to 3.3.2
Actions #3

Updated by Koen Deforche almost 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF