void LineEdit::mouseDownEvent(Tempest::MouseEvent &e) { if(!editable){ e.ignore(); return; } sp = e.pos(); ep = e.pos(); updateSel(); update(); #ifdef __ANDROID__ if( editable ) AndroidAPI::toggleSoftInput(); #endif }
void mouseDragEvent(Tempest::MouseEvent &e){ if( (e.pos()-ppress).manhattanLength()>15 ) closeRq = 0; }
void mouseDownEvent(Tempest::MouseEvent &e){ closeRq = 1; ppress = e.pos(); }