Menu

#31 Right clicking selected rows should preserve selection state

open
nobody
None
5
2006-09-11
2006-09-11
Anonymous
No

When you have a bunch of rows selected and you right
click on one of them, it should trigger the popup menu
without changing the selection state. Currently, it
selects just that row before the menu appears. This
happens because clickInSelectedCells doesn't check
whether isRowSelectMode() is true. Here's a fix:

protected boolean clickInSelectedCells(Point click) {
Point clickedCell =
getCellForCoordinates(click.x, click.y);
if (isRowSelectMode()) {
return m_Selection.get(clickedCell.y) != null;
}
return m_Selection.get(clickedCell) != null;
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB