I agree with you and will join the enhancement request if you create one.
For now, I can only suggest this “dirty trick.”
The EditAnnotation2 macro should be run from Calc (not BasicIDE).
Option Explicit
Sub EditAnnotation2()
Dim oFrame as Object, oDisp as Object, oDoc As Object
Dim oKeyEvent As New com.sun.star.awt.KeyEvent
oDoc = ThisComponent
oFrame = oDoc.CurrentController.Frame
oDisp = createUnoService("com.sun.star.frame.DispatchHelper")
oDisp.executeDispatch oFrame, ".uno:EditAnnotation", "", 0, Array()
oKeyEvent.Modifiers = com.sun.star.awt.KeyModifier.MOD1 ' Ctrl
oKeyEvent.KeyCode=com.sun.star.awt.Key.END
Simulate_KeyPress oDoc, oKeyEvent ' send Ctrl + End to window
End Sub
' https://ask.libreoffice.org/t/create-a-macro-that-press-enter-automatic-once/27172/3?u=sokol92.
Sub Simulate_KeyPress(Byval oDoc As Object, Byval oKeyEvent as Object)
Dim oWindow as object, oToolkit as Object
If (Not (oKeyEvent Is Nothing)) And (Not (oDoc Is Nothing)) Then
oWindow = oDoc.CurrentController.Frame.ContainerWindow
oKeyEvent.Source = oWindow
oToolkit = oWindow.Toolkit
With oToolkit
.keyPress(oKeyEvent)
.keyRelease(oKeyEvent)
End With
End If
End Sub