My window only receives keyboard events after I click in the window. How can I programmatically set the window to have keyboard focus at startup? My window inherits directly from FXMainWindow.I have tried setFocu() and enable(), and have also overriden the canFocus() virtual method to return true, but all to no avail.
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature