equal
deleted
inserted
replaced
75 TInt nodeWindowGroupId = node->WindowGroupId(); |
75 TInt nodeWindowGroupId = node->WindowGroupId(); |
76 TInt focusedWindowGroupId = wsSession.GetFocusWindowGroup(); |
76 TInt focusedWindowGroupId = wsSession.GetFocusWindowGroup(); |
77 |
77 |
78 if ( nodeWindowGroupId == focusedWindowGroupId ) |
78 if ( nodeWindowGroupId == focusedWindowGroupId ) |
79 { |
79 { |
80 return ETrue; |
80 return aThis->IsFocused(); |
81 } |
81 } |
82 |
82 |
83 TInt count = wsSession.NumWindowGroups( 0 ); |
83 TInt count = wsSession.NumWindowGroups( 0 ); |
84 |
84 |
85 // because there is not leave here,so no need to use CleanupStack. |
85 // because there is not leave here,so no need to use CleanupStack. |
858 CCoeControl* ctrl = GrabbingComponent(); |
858 CCoeControl* ctrl = GrabbingComponent(); |
859 CCoeControl::HandlePointerEventL(aPointerEvent); |
859 CCoeControl::HandlePointerEventL(aPointerEvent); |
860 // Add tactile feedbacup when tap can close note. |
860 // Add tactile feedbacup when tap can close note. |
861 if ( aPointerEvent.iType == TPointerEvent::EButton1Down ) |
861 if ( aPointerEvent.iType == TPointerEvent::EButton1Down ) |
862 { |
862 { |
863 if ( DialogFlags()&EEikDialogFlagCloseDialogWhenTapped ) |
863 if ( DialogFlags() & EEikDialogFlagCloseDialogWhenTapped ) |
864 { |
864 { |
865 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
865 if( Rect().Contains( aPointerEvent.iPosition ) ) |
866 if ( feedback ) |
|
867 { |
866 { |
868 feedback->InstantFeedback( ETouchFeedbackPopUp ); |
867 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
|
868 if ( feedback ) |
|
869 { |
|
870 feedback->InstantFeedback( ETouchFeedbackPopUp ); |
|
871 } |
869 } |
872 } |
870 } |
873 } |
871 } |
874 } |
872 else if ( aPointerEvent.iType == TPointerEvent::EButton1Up ) |
875 else if ( aPointerEvent.iType == TPointerEvent::EButton1Up ) |
873 { |
876 { |
874 if ( DialogFlags()&EEikDialogFlagCloseDialogWhenTapped ) |
877 if ( DialogFlags() & EEikDialogFlagCloseDialogWhenTapped ) |
875 { |
878 { |
876 if ( ctrl ) |
879 if ( ctrl ) |
877 { |
880 { |
878 // if grabbingComponent and dialog has 'close dialog when |
881 // if grabbingComponent and dialog has 'close dialog when |
879 // tapped flag', then close dialog here because tapping happened. |
882 // tapped flag', then close dialog here because tapping happened. |