uifw/eikctl/src/EIKMFNE.CPP
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
--- a/uifw/eikctl/src/EIKMFNE.CPP	Tue Feb 02 01:00:49 2010 +0200
+++ b/uifw/eikctl/src/EIKMFNE.CPP	Fri Apr 16 15:13:44 2010 +0300
@@ -155,6 +155,7 @@
         iExtendedInputCapabilitiesProvider;
     TInt iClipGcToRect; // Mainly for 0/1 values
     TInt iDisablePenInput; // Mainly for 0/1 values
+    TBool iTwiceTap;   
     TBool iCursorShown; 
     TBool iFingerSupport;
     TInt iFingerParam;
@@ -2252,12 +2253,18 @@
             }
         if (newField==ENullIndex)
             newField=iCurrentField;
+        if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
+            {
+            iExtension->iTwiceTap = ( iExtension->iFingerSupport ? ETrue : 
+                newField == iCurrentField );            
+            }
 
         if (iExtension && aPointerEvent.iType == TPointerEvent::EButton1Down)
             {
             // Edit feedback on down event in current field, 
             // Edit feedback when changing fields
-            TTouchLogicalFeedback feedback = ETouchFeedbackEdit;
+            TTouchLogicalFeedback feedback = 
+                ( iExtension->iTwiceTap ? ETouchFeedbackEditor : ETouchFeedbackEditor );
             iExtension->iFeedback->InstantFeedback( this, feedback );
             }
         TBool createPopoutIfRequired=((newField==iCurrentField) && aPointerEvent.iType==TPointerEvent::EButton1Down && IsFocused());
@@ -2272,10 +2279,10 @@
         }
     else if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
         {
-        if ( iExtension && !iExtension->iDisablePenInput )
+        if ( iExtension && !iExtension->iDisablePenInput && iExtension->iTwiceTap )
             {
             iExtension->iFeedback->InstantFeedback( this,
-                ETouchFeedbackEdit,
+                ETouchFeedbackEditor,
                 ETouchFeedbackVibra,
                 aPointerEvent );
             LaunchPenInputL();