equal
deleted
inserted
replaced
581 // CNotepadViewerDialog::HandleDialogPointerEventL |
581 // CNotepadViewerDialog::HandleDialogPointerEventL |
582 // from CoeControl |
582 // from CoeControl |
583 // ----------------------------------------------------------------------------- |
583 // ----------------------------------------------------------------------------- |
584 // |
584 // |
585 void CNotepadViewerDialog::HandleDialogPointerEventL( const TPointerEvent& aPointerEvent ) |
585 void CNotepadViewerDialog::HandleDialogPointerEventL( const TPointerEvent& aPointerEvent ) |
586 { |
586 { |
587 |
587 if(!AknLayoutUtils::PenEnabled()) |
588 if(!AknLayoutUtils::PenEnabled()) |
588 { |
589 { |
589 return; |
590 return; |
590 } |
591 } |
|
592 |
591 |
593 if(aPointerEvent.iType == TPointerEvent::EButton1Up ) |
592 if( aPointerEvent.iType == TPointerEvent::EButton1Up ) |
594 { |
593 { |
595 |
594 TRect rect = iEditor->Rect(); |
596 TInt curPos = iEditor->CursorPos(); |
595 if ( !iAutoFinder->ItemWasTappedL( aPointerEvent.iPosition - rect.iTl ) ) |
597 TRect rect = iEditor->Rect(); |
596 { |
598 if ( !iAutoFinder->ItemWasTappedL( aPointerEvent.iPosition - rect.iTl ) ) |
597 return; |
599 { |
598 } |
600 return; |
599 |
601 } |
600 DisplayMenuL(); |
602 |
601 } |
603 TInt curPos1 = iEditor->CursorPos(); |
602 } |
604 if (curPos == curPos1) |
|
605 { |
|
606 iFlags |= ENotepadMenuByOkKey; |
|
607 DisplayMenuL(); |
|
608 } |
|
609 |
|
610 |
|
611 } |
|
612 } |
|
613 |
603 |
614 // ----------------------------------------------------------------------------- |
604 // ----------------------------------------------------------------------------- |
615 // CNotepadViewerDialog::HandleNumberCallL |
605 // CNotepadViewerDialog::HandleNumberCallL |
616 // ----------------------------------------------------------------------------- |
606 // ----------------------------------------------------------------------------- |
617 // |
607 // |