[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #96 from BAndysc/release_mouse_keyup
Browse files Browse the repository at this point in the history
Release mouse capture on connector cancel due to KeyUp event
  • Loading branch information
miroiu committed Mar 24, 2024
2 parents 5d9e410 + 278bbfc commit 87ba23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
> - Added Text to BaseConnection, allowing displaying of text on connections
> - Added Foreground, FontSize, FontWeight, FontStyle, FontStretch and FontFamily to BaseConnection, allowing styling the displaying text
> - Bugfixes:
> - Fixed MouseCapture not being released when EnableStickyConnections is enabled and the PendingConnection is canceled by a key gesture
#### **Version 5.1.0**

Expand Down
1 change: 1 addition & 0 deletions Nodify/Connections/Connector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ protected override void OnKeyUp(KeyEventArgs e)
{
// Cancel pending connection
OnConnectorDragCompleted(cancel: true);
ReleaseMouseCapture();
}
}

Expand Down

0 comments on commit 87ba23b

Please sign in to comment.