I want to know if left key, right key or tab key is pressed inside a textbox.
So I assign the event “non-alphanumeric input” on my textbox to my macro, but when I run my macro :
Sub KeyHandler_KeyPressed(oEvent)
    If oEvent.KeyCode = com.sun.star.awt.Key.TAB Then
        MsgBox("Tab key pressed")
    End If
End Sub
It shows an error dialog box stating that the object “oEvent” isnt defined
What am I doing wrong?
