Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Should right mouse click on table view select the cell? #37

Closed
brutella opened this Issue · 8 comments

4 participants

@brutella

The right mouse click events are mostly used to show context menus based on underlying cell. Therefore I think the cell should also be selected when right clicking on the cell.

In the current implementation the cell is only selected when left clicking on the cell.

@Naituw

You can make it a optional delegate method

@brutella

Right, would be a nice solution!

@brutella brutella referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@brutella brutella referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@atebits

works for me, but one change - method should be of the form: -(BOOL)tableViewShouldSelectRowOnRightClick:(TUITableView *)tableView;

@omz
omz commented

I think it would be even better if the delegate method also included the indexPath that is about to be selected. It might be desirable to have a different behavior for different rows.

@atebits

Totally.

@brutella

We could make a more generic method where a selection can be restricted based on the event.

For example: - (BOOL)tableView:(TUITableView*)tableView shouldSelectRowAtIndexPath:(TUIFastIndexPath*)indexPath forEvent:(NSEvent*)event;

@atebits

Sweet, yeah.

@brutella

Pull request #38 merged. Done!

@brutella brutella closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.