Skip to content

Commit

Permalink
Delegate error
Browse files Browse the repository at this point in the history
  • Loading branch information
jinek committed Oct 21, 2024
1 parent 5f0bd23 commit 36cfbcc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public ArrowsAndKeyboardNavigationHandler(IKeyboardNavigationHandler keyboardNav
public void SetOwner(IInputRoot owner)
{
_keyboardNavigationHandler.SetOwner(owner);

//todo: should we RemoveHandler here?
_owner = owner;
_owner.AddHandler(InputElement.KeyDownEvent, (Delegate)OnKeyDown);
_owner.AddHandler(InputElement.KeyDownEvent, new EventHandler<KeyEventArgs>(OnKeyDown));
}

public void Move(IInputElement element, NavigationDirection direction,
Expand Down

0 comments on commit 36cfbcc

Please sign in to comment.