equal
deleted
inserted
replaced
2227 ret=EKeyWasNotConsumed; |
2227 ret=EKeyWasNotConsumed; |
2228 break; |
2228 break; |
2229 } |
2229 } |
2230 InChar: CheckNotReadOnlyL(); |
2230 InChar: CheckNotReadOnlyL(); |
2231 TChar character(code); |
2231 TChar character(code); |
2232 if ( selectionLength && IsValidNumericCharL(character) ) |
2232 if ( selectionLength ) |
2233 { |
2233 { |
2234 TInt pos=DeleteHighlightL(formatHasChanged); |
2234 TInt pos=DeleteHighlightL(formatHasChanged); |
2235 TRAPD(err,iText->InsertL(pos,character)); |
2235 TRAPD(err,iText->InsertL(pos,character)); |
2236 if ( iEdwinExtension->iSmiley ) |
2236 if ( iEdwinExtension->iSmiley ) |
2237 { |
2237 { |
2251 User::LeaveIfError(err); |
2251 User::LeaveIfError(err); |
2252 reportChange=ETrue; |
2252 reportChange=ETrue; |
2253 formatChange=formatHasChanged; |
2253 formatChange=formatHasChanged; |
2254 break; |
2254 break; |
2255 } |
2255 } |
2256 if ( (!iTextLimit || TextLength()<iTextLimit) && IsValidNumericCharL(character) ) |
2256 if ( !iTextLimit || TextLength()<iTextLimit ) |
2257 { |
2257 { |
2258 iText->InsertL(CursorPos(),character); |
2258 iText->InsertL(CursorPos(),character); |
2259 ClearUndo(); |
2259 ClearUndo(); |
2260 if ( iEdwinExtension->iSmiley ) |
2260 if ( iEdwinExtension->iSmiley ) |
2261 { |
2261 { |
4563 if ( iCcpuSupport ) |
4563 if ( iCcpuSupport ) |
4564 { |
4564 { |
4565 iCcpuSupport->HandleSelectionChangeL(); |
4565 iCcpuSupport->HandleSelectionChangeL(); |
4566 } |
4566 } |
4567 } |
4567 } |
|
4568 iEdwinExtension->iThumbPos = KErrNotFound; |
4568 if (IsReadyToDraw()) |
4569 if (IsReadyToDraw()) |
4569 { |
4570 { |
4570 UpdateScrollBarsL(); |
4571 UpdateScrollBarsL(); |
4571 } |
4572 } |
4572 |
4573 |
8806 TBool CEikEdwin::SkipBackgroundDrawer() const |
8807 TBool CEikEdwin::SkipBackgroundDrawer() const |
8807 { |
8808 { |
8808 return iEdwinInternalFlags & ESkipBackgroundDrawer; |
8809 return iEdwinInternalFlags & ESkipBackgroundDrawer; |
8809 } |
8810 } |
8810 |
8811 |
8811 TBool CEikEdwin::IsValidNumericCharL( TChar aChar ) |
8812 |
8812 { |
|
8813 TBool ret(ETrue); |
|
8814 CAknEdwinState* state = static_cast<CAknEdwinState*>( iEdwinFepSupport->State( KNullUid ) ); |
|
8815 if (state && state->CurrentInputMode() == EAknEditorNumericInputMode ) |
|
8816 { |
|
8817 HBufC* allowedChars = GetAllowedCharsLC(); |
|
8818 if ( (*allowedChars).Length() > 0 && (*allowedChars).Locate( aChar ) == KErrNotFound ) |
|
8819 { |
|
8820 ret = EFalse; |
|
8821 } |
|
8822 CleanupStack::PopAndDestroy(1);//allowedChars |
|
8823 } |
|
8824 return ret; |
|
8825 } |
|
8826 |
8813 |
8827 // End of File |
8814 // End of File |
8828 |
8815 |