Fixed Nabi issues
authorSeema <seema.nagraj@samsung.com>
Thu, 4 Jul 2013 07:00:14 +0000 (12:30 +0530)
committerSeema <seema.nagraj@samsung.com>
Thu, 4 Jul 2013 07:00:14 +0000 (12:30 +0530)
Change-Id: Iddb880a2529179a8a8003d8b8cd8486a759c7603
Signed-off-by: Seema <seema.nagraj@samsung.com>
res/screen-size-normal/IDL_MEMO_TEXT_EDITOR.xml
src/MmTextEditorForm.cpp

index 7c5523b..cf5a50f 100644 (file)
@@ -16,7 +16,7 @@
     </Header>
     <EditArea id="IDC_MEMOCONTENT" parent="IDL_MEMO_TEXT_EDITOR">
         <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadStyle="KEYPAD_STYLE_NORMAL" limitLength="1000" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="32.0" verticalMargin="16.0" viewMode="false"/>
-        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="538.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="136.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="538.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="142.0"/>
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="99.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="-1.0" y="39.0"/>
     </EditArea>
     <Panel id="IDC_PANEL_DATETIME" parent="IDL_MEMO_TEXT_EDITOR">
index e1b3b78..77f2cd8 100644 (file)
@@ -96,6 +96,7 @@ MemoTextEditorForm::OnInitializing(void)
        __pMemoContentEditarea->SetColor(EDIT_STATUS_HIGHLIGHTED, Color(COLOR_WHITE, false));
        __pMemoContentEditarea->SetColor(EDIT_STATUS_PRESSED, Color(COLOR_WHITE, false));
        __pMemoContentEditarea->Clear();
+       __pMemoContentEditarea->SetPropagatedKeyEventListener(this);
 
        __pFormHeader = GetHeader();
        __pFormHeader->SetStyle(HEADER_STYLE_TITLE);
@@ -1263,6 +1264,18 @@ MemoTextEditorForm::OnKeyReleased(Control &source, const Tizen::Ui::KeyEventInfo
                        }
                }
        }
+       if(__pMemoContentEditarea == &source)
+       {
+               if(keyCode == KEY_TAB)
+               {
+                       ShowHideColorPicker(true);
+                       ShowHideFontSizeSlider(true);
+                       RepositionControls(ID_DEFAULT_POSITION);
+                       __pButtonTextSize->SetColor(BUTTON_STATUS_NORMAL, Color(__buttonColor));
+                       __pButtonTextColor->SetColor(BUTTON_STATUS_NORMAL, Color(__buttonColor));
+                       __isColorPickerPanelShow = __isSliderShow = false;
+               }
+       }
 
 
        return false;