Differential D3833 Diff 17385 binaries/data/mods/public/gui/maps/mapbrowser/controls/MapFiltering.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/maps/mapbrowser/controls/MapFiltering.js
Show All 16 Lines | constructor(mapBrowserPage, gridBrowser) | ||||
mapBrowserPage.registerClosePageHandler(() => this.onClosePage()); | mapBrowserPage.registerClosePageHandler(() => this.onClosePage()); | ||||
this.searchBox.blur(); | this.searchBox.blur(); | ||||
} | } | ||||
onOpenPage() | onOpenPage() | ||||
{ | { | ||||
// setTimeout avoids having the hotkey key inserted into the input text. | // setTimeout avoids having the hotkey key inserted into the input text. | ||||
setTimeout(() => this.searchBox.focus(), 0); | setTimeout(() => { | ||||
this.searchBox.control.caption = ""; | |||||
this.searchBox.focus(); | |||||
}, 0); | |||||
} | } | ||||
onClosePage() | onClosePage() | ||||
{ | { | ||||
this.searchBox.blur(); | this.searchBox.blur(); | ||||
} | } | ||||
onMapTypeChange() | onMapTypeChange() | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator