Skip to content

Commit

Permalink
Focus the canvas on click (solves textbox's not giving up focus)
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Oct 9, 2022
1 parent 8a3e8e3 commit 6a3007f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Clowd.Drawing/DrawingCanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ private void DrawingCanvas_SourceUpdated(object sender, DataTransferEventArgs e)

void DrawingCanvas_MouseDown(object sender, MouseButtonEventArgs e)
{
this.Focus();
if (e.ChangedButton == MouseButton.Left)
{
if (e.ClickCount == 2)
Expand Down

0 comments on commit 6a3007f

Please sign in to comment.