87 { |
87 { |
88 ret = EFalse; |
88 ret = EFalse; |
89 } |
89 } |
90 else |
90 else |
91 { |
91 { |
|
92 |
92 if (!(fepMan->IsFlagSet(CAknFepManager::EFlagInsideInlineEditingTransaction))) |
93 if (!(fepMan->IsFlagSet(CAknFepManager::EFlagInsideInlineEditingTransaction))) |
93 { // 'new' inline edit |
94 { // 'new' inline edit |
94 ptiengine->ClearCurrentWord(); |
95 ptiengine->ClearCurrentWord(); |
95 fepMan->StartInlineEditL(); |
96 fepMan->StartInlineEditL(); |
96 fepMan->SetInlineEditingCursorVisibilityL(ETrue); |
97 fepMan->SetInlineEditingCursorVisibilityL(ETrue); |
97 } |
98 } |
98 |
99 |
99 TPtrC aText = ptiengine->AppendKeyPress((TPtiKey)aKey); |
100 TPtrC aText = ptiengine->AppendKeyPress((TPtiKey)aKey); |
|
101 |
|
102 // Get Fep manager pointer |
|
103 CAknFepManager* fepManager = static_cast<CAknFepManager*>(fepMan); |
|
104 |
|
105 // When reaching the max length of the editor in the Hangul mode, |
|
106 // the current texts will be committed. |
|
107 if( fepManager->IsTextExceedLeghthEditor(aText.Length())) |
|
108 { |
|
109 fepMan->CommitInlineEditL(); |
|
110 ptiengine->ClearCurrentWord(); |
|
111 return ETrue; |
|
112 } |
|
113 |
100 fepMan->UpdateInlineEditL(aText, aText.Length()); |
114 fepMan->UpdateInlineEditL(aText, aText.Length()); |
101 |
115 |
102 // Force commit when buffer length is 511. Needs to be commited in order to |
116 // Force commit when buffer length is 511. Needs to be commited in order to |
103 // prevent ptiengines iTextBuffer overflow. Even though it is very unlikely |
117 // prevent ptiengines iTextBuffer overflow. Even though it is very unlikely |
104 // case |
118 // case |