Construct the row containing the digit keys. */
| 255 | |
| 256 | /** Construct the row containing the digit keys. */ |
| 257 | static std::unique_ptr<NWidgetBase> MakeNumberKeys() |
| 258 | { |
| 259 | std::unique_ptr<NWidgetHorizontal> hor = std::make_unique<NWidgetHorizontalLTR>(); |
| 260 | hor->SetPIP(0, INTER_KEY_SPACE, 0); |
| 261 | |
| 262 | for (WidgetID widnum = WID_OSK_NUMBERS_FIRST; widnum <= WID_OSK_NUMBERS_LAST; widnum++) { |
| 263 | AddKey(hor, KEY_PADDING, 2, WWT_PUSHBTN, widnum, {}); |
| 264 | } |
| 265 | return hor; |
| 266 | } |
| 267 | |
| 268 | /** Construct the qwerty row keys. */ |
| 269 | static std::unique_ptr<NWidgetBase> MakeQwertyKeys() |