textinput/peninputgenericvkb/src/peninputgenericvkblayout.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   276             {
   276             {
   277             TBool IsDimArrowKeys = *aData;
   277             TBool IsDimArrowKeys = *aData;
   278             vkbWindow->DimArrowKeys( IsDimArrowKeys );
   278             vkbWindow->DimArrowKeys( IsDimArrowKeys );
   279             }
   279             }
   280             break;
   280             break;
       
   281         case ECmdPeninputVietSyncToneMarker:
       
   282         	{
       
   283         	TBool bDimToneMarker = *aData;
       
   284         	vkbWindow->EnableToneMarker(bDimToneMarker);
       
   285         	}
       
   286         	break;
   281         case ECmdPenInputDimEnterKey:
   287         case ECmdPenInputDimEnterKey:
   282             {
   288             {
   283             TBool isDimEnterKey = *((TUint16*)( aData ));            
   289             TBool isDimEnterKey = *((TUint16*)( aData ));            
   284             vkbWindow->DimEnterKey( isDimEnterKey );            
   290             vkbWindow->DimEnterKey( isDimEnterKey );            
   285             }
   291             }
   375         case EEventInsertSpace:
   381         case EEventInsertSpace:
   376             {
   382             {
   377             SignalOwner(ESignalKeyEvent, KDisplaySpace);            
   383             SignalOwner(ESignalKeyEvent, KDisplaySpace);            
   378             }
   384             }
   379         	break;
   385         	break;
   380         case EEventVirtualKeyDown:
       
   381         	{
       
   382         	HandleVirtualKeyDown();
       
   383         	CPeninputCommonLayoutExt::HandleControlEvent( aEventType, 
       
   384         			aCtrl, aEventData );
       
   385         	break;
       
   386         	}
       
   387         default:
   386         default:
   388             {
   387             {
   389             CPeninputCommonLayoutExt::HandleControlEvent(aEventType, aCtrl, aEventData);
   388             CPeninputCommonLayoutExt::HandleControlEvent(aEventType, aCtrl, aEventData);
   390             }
   389             }
   391             break;       
   390             break;       
   537             }           
   536             }           
   538         CPeninputCommonLayoutExt::HandleControlEvent(aEventType, aCtrl, eventDataPtr);
   537         CPeninputCommonLayoutExt::HandleControlEvent(aEventType, aCtrl, eventDataPtr);
   539         delete number;
   538         delete number;
   540         }
   539         }
   541     }
   540     }
   542 
       
   543 // ---------------------------------------------------------------------------
       
   544 // Handle virtual key down event
       
   545 // ---------------------------------------------------------------------------
       
   546 //
       
   547 void CPeninputGenericVkbLayout::HandleVirtualKeyDown()
       
   548 	{
       
   549 	CPeninputGenericVkbWindow* window = 
       
   550 			static_cast<CPeninputGenericVkbWindow*>( iLayoutWindow );
       
   551 	
       
   552 	if ( window )
       
   553 		{
       
   554 		window->HandleVirtualKeyDownEvent();
       
   555 		}
       
   556 	}
       
   557 
   541 
   558 TBool CPeninputGenericVkbLayout::TranslateMirrorUnicode( TUint16 aInputCode, TUint16& aOutputCode )
   542 TBool CPeninputGenericVkbLayout::TranslateMirrorUnicode( TUint16 aInputCode, TUint16& aOutputCode )
   559     {
   543     {
   560     TBool isMirrorChar = EFalse;
   544     TBool isMirrorChar = EFalse;
   561     TInt langCode = *( ( TInt* )(iDataMgr->RequestData( EPeninputDataTypeInputLanguage )));
   545     TInt langCode = *( ( TInt* )(iDataMgr->RequestData( EPeninputDataTypeInputLanguage )));