### Handle Enter on Selected Cell

To handle the ENTER key pressed on a TableView, make use of an Key Event Filter as defined in the jReflection library.
References:
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/KeyEvent.html
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/KeyCode.html
Example
Private TableView_HTMLTags As TableView
' Key Handler for the TableView - requires the jReflection library
Dim r As Reflector
r.Target = TableView_HTMLTags
r.AddEventFilter("Key", "javafx.scene.input.KeyEvent.KEY_PRESSED")
' Keyfilter for the tableview. Handled are
' ENTER
`Sub Key_Filter (EventData As Event)
Dim jo As JavaObject = EventData
Dim code As String = jo.RunMethod("getCode", Null)
If code = "ENTER" Then
Button_Copy_Action
EventData.Consume
End If
End Sub`

Changed: , Category: TableView, File: T6C259M1889.htm, ID: 1889