removed ALT+F4 shortcut, it is already registered by default

This commit is contained in:
Jan-Peter Klein 2024-09-16 14:55:51 +02:00
parent 84e3cf0762
commit 3adffad087
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -30,9 +30,7 @@ public class MainWindowSceneFactory extends DefaultSceneFactory {
@Override
protected void setupDefaultAccelerators(Scene scene, Stage stage) {
if (SystemUtils.IS_OS_WINDOWS) {
scene.getAccelerators().put(ALT_F4, window::close);
} else {
if (!SystemUtils.IS_OS_WINDOWS) {
scene.getAccelerators().put(SHORTCUT_W, window::close);
}
scene.getAccelerators().put(SHORTCUT_N, vaultListController.get()::didClickAddNewVault);