Skip to content

Commit

Permalink
Merge pull request #2615 from cwensley/curtis/treegridview-collapse-o…
Browse files Browse the repository at this point in the history
…nly-when-not-editing

Wpf: Only expand/collapse/go to parent on left key when not editing
  • Loading branch information
cwensley authored Feb 7, 2024
2 parents 2ee922e + 6bf94b6 commit 121c417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eto.Wpf/Forms/Controls/TreeGridViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected override void Initialize()

private void Control_PreviewKeyDown(object sender, sw.Input.KeyEventArgs e)
{
if (e.Handled || swi.Keyboard.Modifiers != swi.ModifierKeys.None)
if (e.Handled || swi.Keyboard.Modifiers != swi.ModifierKeys.None || IsEditing)
return;

// handle expanding/collapsing via the keyboard
Expand Down

0 comments on commit 121c417

Please sign in to comment.