Enter key shouldn't enable cursor when token is focused
authorKunal Sinha <kunal.sinha@samsung.com>
Wed, 12 Jun 2013 10:39:30 +0000 (16:09 +0530)
committerKunal Sinha <kunal.sinha@samsung.com>
Wed, 12 Jun 2013 10:39:30 +0000 (16:09 +0530)
Change-Id: I081eab52f41dc182e7a94daac984a5e200bfe8ad
Signed-off-by: Kunal Sinha <kunal.sinha@samsung.com>
src/ui/controls/FUiCtrl_TokenEditPresenter.cpp

index 9a039c2..46383ed 100644 (file)
@@ -3037,7 +3037,7 @@ _TokenEditPresenter::OnTextCommitted(const String& commitText)
                        InitializeTokenVisibilityAt(i);
                }
 
-               if (__pressedTokenIndex < 0)
+               if (__pressedTokenIndex < 0 && __focusedTokenIndex < 0)
                {
                        SetCursorDisabled(true);
                        __pTokenEdit->Draw();