notepad/notepad1/LibSrc/NpdViewerDialog.cpp
branchRCL_3
changeset 14 21239b3bcd78
parent 0 f979ecb2b13e
child 18 d68a4b5d5885
equal deleted inserted replaced
13:1984aceb8774 14:21239b3bcd78
   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 //