I am building a desktop application as a way to improve my Scala skills and learn ScalaFX.
I am getting an error in IntelliJ that I find confusing, example show me to do what I am doing but I get
type mismatch;
found : scalafx.scene.input.KeyEvent => Unit
required: this.FilterMagnet[javafx.scene.input.KeyEvent,?]
ke: KeyEvent => {
screenshot below - get the same result always even in a new project with just one text field on the screen.
Tried many options with a filter magnet to no avail confused because I thought it should implicitly convert to a FilterMagnet.
Using ScalaFX 15.0.1-R21 with Scala 2.13.5