Changeset - r28697:7565772fcdbd
[Not reviewed]
master
0 1 0
dP - 3 months ago 2024-02-05 23:14:21
dp@dpointer.org
Fix: Focus hotkey in road/tram stop building window (#12008)
1 file changed with 9 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/road_gui.cpp
Show inline comments
 
@@ -1582,7 +1582,11 @@ public:
 
		this->InvalidateData();
 
	}};
 

	
 
	static inline HotkeyList hotkeys{"buildroadstop", {
 
	static inline HotkeyList road_hotkeys{"buildroadstop", {
 
		Hotkey('F', "focus_filter_box", BROSHK_FOCUS_FILTER_BOX),
 
	}};
 

	
 
	static inline HotkeyList tram_hotkeys{"buildtramstop", {
 
		Hotkey('F', "focus_filter_box", BROSHK_FOCUS_FILTER_BOX),
 
	}};
 
};
 
@@ -1684,7 +1688,8 @@ static WindowDesc _road_station_picker_d
 
	WDP_AUTO, "build_station_road", 0, 0,
 
	WC_BUS_STATION, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	std::begin(_nested_road_station_picker_widgets), std::end(_nested_road_station_picker_widgets)
 
	std::begin(_nested_road_station_picker_widgets), std::end(_nested_road_station_picker_widgets),
 
	&BuildRoadStationWindow::road_hotkeys
 
);
 

	
 
/** Widget definition of the build tram station window */
 
@@ -1761,7 +1766,8 @@ static WindowDesc _tram_station_picker_d
 
	WDP_AUTO, "build_station_tram", 0, 0,
 
	WC_BUS_STATION, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	std::begin(_nested_tram_station_picker_widgets), std::end(_nested_tram_station_picker_widgets)
 
	std::begin(_nested_tram_station_picker_widgets), std::end(_nested_tram_station_picker_widgets),
 
	&BuildRoadStationWindow::tram_hotkeys
 
);
 

	
 
static void ShowRVStationPicker(Window *parent, RoadStopType rs)
0 comments (0 inline, 0 general)