mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
text edit improvments
This commit is contained in:
@@ -49,8 +49,8 @@ void UITextEdit::onInputEvent(const InputEvent& event)
|
||||
m_textArea.moveCursor(false);
|
||||
} else if(event.type == EV_MOUSE_LDOWN) {
|
||||
|
||||
} else if(event.type == EV_MOUSE_LUP) {
|
||||
dump << m_textArea.getTextPos(event.mousePos);
|
||||
} else if(event.type == EV_MOUSE_LUP && getRect().contains(event.mousePos)) {
|
||||
m_textArea.setCursorPos(m_textArea.getTextPos(event.mousePos));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user