Feature: Control + clicking on a vehicle in the vehicle list window opens the vehicle group window focused on the vehicle's group.

This commit is contained in:
stormcone 2019-10-23 23:48:20 +02:00 committed by Charles Pigott
parent 798e9ee93e
commit fea5151ee1
1 changed files with 7 additions and 1 deletions

View File

@ -1625,7 +1625,13 @@ public:
if (id_v >= this->vehicles.size()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
if (!VehicleClicked(v)) ShowVehicleViewWindow(v);
if (!VehicleClicked(v)) {
if (_ctrl_pressed) {
ShowCompanyGroupForVehicle(v);
} else {
ShowVehicleViewWindow(v);
}
}
break;
}