Skip to content

Commit

Permalink
Wpf: Only expand/collapse/go to parent on left key when not editing
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Feb 7, 2024
1 parent db8e205 commit 6bf94b6
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 6bf94b6

Please sign in to comment.