Construct the qwerty row keys. */
| 267 | |
| 268 | /** Construct the qwerty row keys. */ |
| 269 | static std::unique_ptr<NWidgetBase> MakeQwertyKeys() |
| 270 | { |
| 271 | std::unique_ptr<NWidgetHorizontal> hor = std::make_unique<NWidgetHorizontalLTR>(); |
| 272 | hor->SetPIP(0, INTER_KEY_SPACE, 0); |
| 273 | |
| 274 | AddKey(hor, KEY_PADDING, 3, WWT_PUSHIMGBTN, WID_OSK_SPECIAL, WidgetData{.sprite = SPR_OSK_SPECIAL}); |
| 275 | for (WidgetID widnum = WID_OSK_QWERTY_FIRST; widnum <= WID_OSK_QWERTY_LAST; widnum++) { |
| 276 | AddKey(hor, KEY_PADDING, 2, WWT_PUSHBTN, widnum, {}); |
| 277 | } |
| 278 | AddKey(hor, KEY_PADDING, 1, NWID_SPACER, 0, {}); |
| 279 | return hor; |
| 280 | } |
| 281 | |
| 282 | /** Construct the asdfg row keys. */ |
| 283 | static std::unique_ptr<NWidgetBase> MakeAsdfgKeys() |