tag:blogger.com,1999:blog-6266231010760265271.post7600883922347526008..comments2024-03-28T05:23:13.144-04:00Comments on Bekwam Blog: The F1 Help Key with Java FXCarlhttp://www.blogger.com/profile/15013889141640529637noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6266231010760265271.post-9550415643987666802017-02-21T13:54:47.766-05:002017-02-21T13:54:47.766-05:00Good tip, although I'm still looking for Scene...Good tip, although I'm still looking for Scene Builder to do this so that I don't have to hand-edit the FXML (or write extra code).Carlhttps://www.blogger.com/profile/15013889141640529637noreply@blogger.comtag:blogger.com,1999:blog-6266231010760265271.post-6198168800132132222017-02-21T13:30:45.103-05:002017-02-21T13:30:45.103-05:00No need to write code for that.
Just define the a...No need to write code for that.<br /><br />Just define the accelerator in SceneBuilder with a modifier, e.g. 'shortcut_down'.<br /><br />Then open the fxml file in an editor, search for the accelerator and set "DOWN" to "UP", as in:<br /><br />KeyCodeCombination code="F1" alt="UP" control="UP" meta="UP" shift="UP" shortcut="UP"<br /><br />Save, re-open the scene in SceneBuilder, and it will display the shortcut correctly as "F1".<br />Anonymousnoreply@blogger.com