|
|
@@ -34,6 +34,7 @@ void TextField::onHover(const event::Hover &e) { |
|
|
|
OpaqueWidget::onHover(e); |
|
|
|
|
|
|
|
if (this == APP->event->draggedWidget) { |
|
|
|
DEBUG("asdf"); |
|
|
|
int pos = getTextPosition(e.pos); |
|
|
|
if (pos != selection) { |
|
|
|
cursor = pos; |
|
|
@@ -49,6 +50,11 @@ void TextField::onButton(const event::Button &e) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void TextField::onDragStart(const event::DragStart &e) { |
|
|
|
// Enable dragging so onHover can set the cursor position. |
|
|
|
e.consume(this); |
|
|
|
} |
|
|
|
|
|
|
|
void TextField::onEnter(const event::Enter &e) { |
|
|
|
e.consume(this); |
|
|
|
} |
|
|
|