Andrei486 / uml-diagram-collab

0 stars 0 forks source link

Add keybinds and mnemonics for certain actions #122

Closed Andrei486 closed 5 months ago

Andrei486 commented 5 months ago

Keybinds:

Mnemonics: To use them, you need to see the first letter of some menu options underlined. If this isn't the case, press Alt once and it should happen. Once you do that, pressing the underline key should open the corresponding menu or activate the corresponding menu item, as if it had been pressed.

Tests: Couldn't make tests for the save as, because I couldn't mock the file chooser dialog constructor (mockConstruct was ignored and there's no Platform.runLater workaround). The delete and regular save (when a file path is already defined) are tested both via mnemonics and direct keybinds.