equal
deleted
inserted
replaced
593 case EKeyRightArrow: |
593 case EKeyRightArrow: |
594 case EKeyUpArrow: |
594 case EKeyUpArrow: |
595 case EKeyDownArrow: |
595 case EKeyDownArrow: |
596 { |
596 { |
597 TKeyResponse res = charmapControl->OfferKeyEventL(aKeyEvent, aModifiers); |
597 TKeyResponse res = charmapControl->OfferKeyEventL(aKeyEvent, aModifiers); |
598 RefreshTitleAndNavi(); |
598 RefreshTitleAndNaviL(); |
599 return res; |
599 return res; |
600 } |
600 } |
601 |
601 |
602 case EKeyEnter: |
602 case EKeyEnter: |
603 case EKeyDevice3: |
603 case EKeyDevice3: |
954 // Handles pointer events |
954 // Handles pointer events |
955 // ----------------------------------------------------------------------------- |
955 // ----------------------------------------------------------------------------- |
956 // |
956 // |
957 EXPORT_C void CAknCharMapDialog::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
957 EXPORT_C void CAknCharMapDialog::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
958 { |
958 { |
959 if (!Rect().Contains( aPointerEvent.iPosition)) |
959 if(!Rect().Contains(aPointerEvent.iPosition)) |
960 { |
960 { |
961 if(aPointerEvent.iType == TPointerEvent::EButton1Down) |
961 if(aPointerEvent.iType == TPointerEvent::EButton1Down) |
962 { |
962 { |
963 TryExitL (EAknSoftkeyCancel); |
963 TryExitL(EAknSoftkeyCancel); |
964 return; |
964 return; |
965 } |
965 } |
966 else if(aPointerEvent.iType == TPointerEvent::EButton1Up) |
966 } |
967 { |
967 |
968 CAknCharMap* charMap = STATIC_CAST( CAknCharMap*, Control( EAknSCTQueryContentId ) ); |
968 CAknDialog::HandlePointerEventL(aPointerEvent); |
969 charMap->HandlePointerEventL( aPointerEvent); |
|
970 } |
|
971 } |
|
972 else |
|
973 { |
|
974 CAknDialog::HandlePointerEventL(aPointerEvent); |
|
975 } |
|
976 } |
969 } |
977 |
970 |
978 void CAknCharMapDialog::SwitchTablesOrPagesL() |
971 void CAknCharMapDialog::SwitchTablesOrPagesL() |
979 { |
972 { |
980 if(!SwitchTablesL()) |
973 if(!SwitchTablesL()) |
1005 { |
998 { |
1006 CAknCharMap* charmapControl = STATIC_CAST(CAknCharMap*, Control(EAknSCTQueryContentId)); |
999 CAknCharMap* charmapControl = STATIC_CAST(CAknCharMap*, Control(EAknSCTQueryContentId)); |
1007 CAknPopupHeadingPane* headingPane = STATIC_CAST(CAknPopupHeadingPane*, Control(EAknSCTQueryHeadingId)); |
1000 CAknPopupHeadingPane* headingPane = STATIC_CAST(CAknPopupHeadingPane*, Control(EAknSCTQueryHeadingId)); |
1008 |
1001 |
1009 charmapControl->NextPageL(); |
1002 charmapControl->NextPageL(); |
1010 RefreshTitleAndNavi(); |
1003 RefreshTitleAndNaviL(); |
1011 } |
1004 } |
1012 |
1005 |
1013 void CAknCharMapDialog::RefreshTitleAndNavi() |
1006 void CAknCharMapDialog::RefreshTitleAndNaviL() |
1014 { |
1007 { |
1015 CAknCharMap* charmapControl = STATIC_CAST(CAknCharMap*, Control(EAknSCTQueryContentId)); |
1008 CAknCharMap* charmapControl = STATIC_CAST(CAknCharMap*, Control(EAknSCTQueryContentId)); |
1016 CAknPopupHeadingPane* headingPane = STATIC_CAST(CAknPopupHeadingPane*, Control(EAknSCTQueryHeadingId)); |
1009 CAknPopupHeadingPane* headingPane = STATIC_CAST(CAknPopupHeadingPane*, Control(EAknSCTQueryHeadingId)); |
1017 |
1010 |
1018 if (!AknLayoutUtils::PenEnabled()) |
1011 if (!AknLayoutUtils::PenEnabled()) |