Skip to content

Commit 3435298

Browse files
fix comment and col selection
1 parent 5d538a6 commit 3435298

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/TableViewCell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private void OnContextRequested(UIElement sender, ContextRequestedEventArgs e)
6666
if (!e.TryGetPosition(sender, out var position)) return;
6767
#endif
6868

69-
// Select the row before showing the Context Menu
69+
// Select the cell before showing the Context Menu
7070
if (TableView is not null && TableView.ForceRowOrCellSelectionOnContextRequested && !IsSelected)
7171
{
7272
TableView.MakeSelection(Slot, false);

src/TableViewRow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private void OnContextRequested(UIElement sender, ContextRequestedEventArgs e)
7676
// Select the row before showing the Context Menu
7777
if (TableView is not null && TableView.ForceRowOrCellSelectionOnContextRequested && !IsSelected)
7878
{
79-
TableView.MakeSelection(new TableViewCellSlot(Index, 0), false);
79+
TableView.MakeSelection(new TableViewCellSlot(Index, -1), false);
8080
}
8181

8282
e.Handled = TableView?.ShowRowContext(this, position) is true;

0 commit comments

Comments
 (0)