| 273 | } |
| 274 | |
| 275 | Maybe<pair<RectI, int>> TextBoxWidget::keyboardCaptureArea() const { |
| 276 | if (active() && hasFocus()) { |
| 277 | return make_pair(screenBoundRect().scaled(context()->interfaceScale()), getCursorDrawOffset()); |
| 278 | } |
| 279 | return {}; |
| 280 | } |
| 281 | |
| 282 | bool TextBoxWidget::sendEvent(InputEvent const& event) { |
| 283 | if (!hasFocus()) |
nothing calls this directly
no test coverage detected