Ticket #145: TextView.cpp.patch

File TextView.cpp.patch, 1.4 KB (added by bxi07354@…, 18 years ago)

TextView.cpp

  • haiku/src/kits/interface/BTextView/TextView.cpp

    old new  
    44174417
    44184418    be_app->ObscureCursor();
    44194419   
    4420     // If we find the "be:confirmed" boolean (and the boolean is true),
    4421     // it means it's over for now, so the current _BInlineInput_ object
    4422     // should become inactive. We will probably receive a B_INPUT_METHOD_STOPPED
    4423     // message after this one.
    4424     bool confirmed = false;
    4425     if (message->FindBool("be:confirmed", &confirmed) == B_OK && confirmed) {
    4426         fInline->SetActive(false);
    4427         Refresh(0, fInline->Offset() + fInline->Length(), true, false);
    4428         return;
    4429     }
    4430    
    44314420    // Delete the previously inserted text (if any)
    44324421    if (fInline->IsActive()) {
    44334422        int32 oldOffset = fInline->Offset();
     
    44674456    fSelStart += stringLen;
    44684457    fClickOffset = fSelEnd = fSelStart;
    44694458   
     4459    // If we find the "be:confirmed" boolean (and the boolean is true),
     4460    // it means it's over for now, so the current _BInlineInput_ object
     4461    // should become inactive. We will probably receive a B_INPUT_METHOD_STOPPED
     4462    // message after this one.
     4463    bool confirmed = false;
     4464    if (message->FindBool("be:confirmed", &confirmed) == B_OK && confirmed) {
     4465        fInline->SetActive(false);
     4466        Refresh(0, fInline->Offset() + fInline->Length(), true, false);
     4467        return;
     4468    }
     4469   
    44704470    if (!fInline->IsActive())
    44714471        fInline->SetActive(true);
    44724472