equal
deleted
inserted
replaced
225 // Set the focus to the last control in the control array |
225 // Set the focus to the last control in the control array |
226 // (either attachment line or subject field) |
226 // (either attachment line or subject field) |
227 CCoeControlArray::TCursor cur = Components().End(); |
227 CCoeControlArray::TCursor cur = Components().End(); |
228 cur.Prev(); |
228 cur.Prev(); |
229 cur.Control<CCoeControl>()->SetFocus( ETrue, aDrawNow ); |
229 cur.Control<CCoeControl>()->SetFocus( ETrue, aDrawNow ); |
|
230 iFocused = cur.Control<CCoeControl>(); |
230 } |
231 } |
231 } |
232 } |
232 |
233 |
233 // --------------------------------------------------------------------------- |
234 // --------------------------------------------------------------------------- |
234 // CNcsHeaderContainer::ShowCursor |
235 // CNcsHeaderContainer::ShowCursor |
959 if ( focused ) |
960 if ( focused ) |
960 { |
961 { |
961 focused->SetFocus( EFalse ); |
962 focused->SetFocus( EFalse ); |
962 } |
963 } |
963 iBccField->SetFocus( ETrue ); |
964 iBccField->SetFocus( ETrue ); |
|
965 iFocused = iBccField; |
964 iBccField->SelectAllTextL(); |
966 iBccField->SelectAllTextL(); |
965 } |
967 } |
966 } |
968 } |
967 else |
969 else |
968 { |
970 { |
975 |
977 |
976 cur.Prev(); // Get the control before this field |
978 cur.Prev(); // Get the control before this field |
977 cur.Control<CCoeControl>()->SetFocus( ETrue ); |
979 cur.Control<CCoeControl>()->SetFocus( ETrue ); |
978 } |
980 } |
979 Components().Remove( iBccField ); |
981 Components().Remove( iBccField ); |
|
982 iFocused = iSubjectField; |
980 } |
983 } |
981 |
984 |
982 TRAP_IGNORE( iFieldSizeObserver.UpdateFieldSizeL() ); |
985 TRAP_IGNORE( iFieldSizeObserver.UpdateFieldSizeL() ); |
983 |
986 |
984 if ( aDrawNow == EDrawNow ) |
987 if ( aDrawNow == EDrawNow ) |
1010 if ( focused ) |
1013 if ( focused ) |
1011 { |
1014 { |
1012 focused->SetFocus( EFalse ); |
1015 focused->SetFocus( EFalse ); |
1013 } |
1016 } |
1014 iCcField->SetFocus( ETrue ); |
1017 iCcField->SetFocus( ETrue ); |
|
1018 iFocused = iCcField; |
1015 iCcField->SelectAllTextL(); |
1019 iCcField->SelectAllTextL(); |
1016 } |
1020 } |
1017 } |
1021 } |
1018 else |
1022 else |
1019 { |
1023 { |
1021 { |
1025 { |
1022 iCcField->SetFocus( EFalse ); |
1026 iCcField->SetFocus( EFalse ); |
1023 iToField->SetFocus( ETrue ); |
1027 iToField->SetFocus( ETrue ); |
1024 } |
1028 } |
1025 Components().Remove( iCcField ); |
1029 Components().Remove( iCcField ); |
|
1030 iFocused = iToField; |
1026 } |
1031 } |
1027 |
1032 |
1028 TRAP_IGNORE( iFieldSizeObserver.UpdateFieldSizeL() ); |
1033 TRAP_IGNORE( iFieldSizeObserver.UpdateFieldSizeL() ); |
1029 |
1034 |
1030 if ( aDrawNow == EDrawNow ) |
1035 if ( aDrawNow == EDrawNow ) |