--- a/fep/aknfep/src/AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase.cpp Tue Sep 14 21:59:06 2010 +0300
+++ b/fep/aknfep/src/AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase.cpp Wed Sep 15 12:34:44 2010 +0300
@@ -30,6 +30,7 @@
#include <PtiEngine.h>
#include <PtiUserDicEntry.h>
#include <aknnotewrappers.h> //CAknWarningNote
+#include "AknFepUiManagerBase.h"
const TInt KMinCandidateCount = 1;
// User includes
@@ -42,6 +43,7 @@
#include "AknFepUIManagerStateInterface.h"
#include "AknFepManager.h"
#include <aknfep.rsg>
+#include "AknFepUiManagerChinese.h"
// ---------------------------------------------------------------------------
// AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase::
@@ -206,11 +208,21 @@
{
if ( CheckFirstGroupStroke() )
{
+ //stroke to be shown
+ if ( iPlugin.IsEnable())
+ {
+ iPlugin.AnalyseL();
+ }
RefreshUI( EFalse );
UIContainer()->CandidatePane()->SelectFirstPhrase();
}
else
{
+ //stroke to be shown
+ if ( iPlugin.IsEnable())
+ {
+ iPlugin.AnalyseL();
+ }
UIContainer()->EditPaneWindow()->SetAutoChangeStateFlag( EAutoChangeStateFromCandidate );
iOwner->ChangeState( EMiniQwertyEdit );
}
@@ -278,5 +290,36 @@
break;
}
}
-
+void TAknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase::SubmitTextL( const TDesC& aText )
+ {
+ if ( aText.Length() )
+ {
+ if ( !CommitInlineEEPL( aText ) )
+ {
+ DoActionAfterCommit();
+ }
+ else
+ {
+ if ( CheckFirstGroupStroke() )
+ {
+ //stroke to be shown
+ if ( iPlugin.IsEnable())
+ {
+ iPlugin.AnalyseL();
+ }
+ RefreshUI( EFalse );
+ UIContainer()->CandidatePane()->SelectFirstPhrase();
+ }
+ else
+ {
+ if ( iPlugin.IsEnable())
+ {
+ iPlugin.AnalyseL();
+ }
+ UIContainer()->EditPaneWindow()->SetAutoChangeStateFlag( EAutoChangeStateFromCandidate );
+ iOwner->ChangeState( EMiniQwertyEdit );
+ }
+ }
+ }
+ }
// End of file