| 1094 | } |
| 1095 | |
| 1096 | static JSValue focus(JSContext* ctx, JSValue thisVal, int argc, JSValue* argv) |
| 1097 | { |
| 1098 | WidgetData data = GetWidgetData(thisVal); |
| 1099 | auto w = GetWindow(data._class, data._number); |
| 1100 | auto wPtr = GetWidget(w, data._widgetIndex); |
| 1101 | if (IsCustomWindow(w) && wPtr) |
| 1102 | { |
| 1103 | Ui::Windows::WindowStartTextbox( |
| 1104 | *w, data._widgetIndex, wPtr->string, Ui::Windows::GetWidgetMaxLength(w, data._widgetIndex)); |
| 1105 | } |
| 1106 | return JS_UNDEFINED; |
| 1107 | } |
| 1108 | }; |
| 1109 | |
| 1110 | class ScViewportWidget : public ScWidget |
nothing calls this directly
no test coverage detected