Tip of the day: Do Copy and Paste yourself in Xojo desktop app on Windows
EventHandler Function KeyDown(Key As String) As Boolean
#If TargetWindows
Dim a As Integer = Asc(key)
If Keyboard.ControlKey Then
Select Case a
Case 1 // Control-A
Me.SelStart = 0
Me.SelLength = Len(Me.Text)
Return True
Case 3 // Control-C
Dim cl As New Clipboard
cl.SetText Me.SelText
Return True
Case 22 // Control-V
Dim cl As New Clipboard
Me.SelText = cl.Text
Return True
Case 24 // Control-X
Dim cl As New Clipboard
cl.SetText Me.SelText
Me.SelText = ""
Return True
Else
Return False // ignore?
End Select
End If
#EndIf
End EventHandler
If you have questions, please don't hesitate to contact us.