MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowOnScreenKeyboard

Function ShowOnScreenKeyboard

src/osk_gui.cpp:391–397  ·  view source on GitHub ↗

* Show the on-screen keyboard (osk) associated with a given textbox * @param parent pointer to the Window where this keyboard originated from * @param button widget number of parent's textbox */

Source from the content-addressed store, hash-verified

389 * @param button widget number of parent's textbox
390 */
391void ShowOnScreenKeyboard(Window *parent, WidgetID button)
392{
393 CloseWindowById(WC_OSK, 0);
394
395 GetKeyboardLayout();
396 new OskWindow(_osk_desc, parent, button);
397}
398
399/**
400 * Updates the original text of the OSK so when the 'parent' changes the

Callers 1

ClickEditBoxMethod · 0.85

Calls 2

CloseWindowByIdFunction · 0.85
GetKeyboardLayoutFunction · 0.85

Tested by

no test coverage detected