Fix issue MR-176 - Del key while editing connection name triggers 'Delete Connection'

This commit is contained in:
Riley McArdle
2013-02-12 20:54:58 -06:00
parent 62edfd2c50
commit 3079b45ab1
2 changed files with 8 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
Fix issue MR-99 - Integrate Spanish translation
Fix issue MR-131 - RD Gateway does not respect setting for use different credentials
Fix issue MR-172 - RDGatewayPassword is unencrypted in confCons.xml file
Fix issue MR-176 - Del key while editing connection name triggers 'Delete Connection'
Fix issue MR-181 - Sessions on startup
Fix issue MR-277 - Inheritance configuration button not appear in configuration tab
Added compatibility check for "Use FIPS compliant algorithms" security setting.

View File

@@ -540,8 +540,14 @@ Namespace UI
End Try
End Sub
Private Sub tvConnections_BeforeLabelEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.NodeLabelEditEventArgs) Handles tvConnections.BeforeLabelEdit
cMenTreeDelete.ShortcutKeys = Keys.None
End Sub
Private Sub tvConnections_AfterLabelEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.NodeLabelEditEventArgs) Handles tvConnections.AfterLabelEdit
Try
cMenTreeDelete.ShortcutKeys = System.Windows.Forms.Keys.Delete
If My.Settings.SetHostnameLikeDisplayName Then
If TypeOf e.Node.Tag Is mRemoteNG.Connection.Info Then
DirectCast(e.Node.Tag, mRemoteNG.Connection.Info).Hostname = e.Label
@@ -1005,7 +1011,7 @@ Namespace UI
nConI.TreeNode = nNode
nNode.Tag = nConI
connectionList.Add(nConI)
ConnectionList.Add(nConI)
If mRemoteNG.Tree.Node.GetNodeType(Me.tvConnections.SelectedNode) = mRemoteNG.Tree.Node.Type.Connection Then
Me.tvConnections.SelectedNode.Parent.Nodes.Add(nNode)