Feature: Control + click on the vehicle details button in the vehicle view window opens the vehicle group window, then selects and scrolls to the vehicle's group.

This commit is contained in:
stormcone
2019-05-10 19:49:50 +02:00
committed by Charles Pigott
parent a363933d08
commit cc1d72c3a3
3 changed files with 24 additions and 6 deletions

View File

@@ -2698,7 +2698,11 @@ public:
}
break;
case WID_VV_SHOW_DETAILS: // show details
ShowVehicleDetailsWindow(v);
if (_ctrl_pressed) {
ShowCompanyGroupForVehicle(v);
} else {
ShowVehicleDetailsWindow(v);
}
break;
case WID_VV_CLONE: // clone vehicle
/* Suppress the vehicle GUI when share-cloning.