Current:
- switch (keyBinding.get()) {
- case DELETE_ENTRY:
- new DeleteFileAction(dialogService, preferencesService, databaseContext,
- viewModel, listView).execute();
- event.consume();
- break;
- default:
- // Pass other keys to children
+ if (keyBinding.get() == KeyBinding.DELETE_ENTRY) {
+ new DeleteFileAction(dialogService, preferencesService, databaseContext,
+ viewModel, listView).execute();
+ event.consume();
+ } else {
Expected:
if (keyBinding.get() == KeyBinding.DELETE_ENTRY) {
new DeleteFileAction(dialogService, preferencesService, databaseContext,
viewModel, listView).execute();
event.consume();
} else {
// Pass other keys to children
Current:
Expected: