projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add focus indicator only when attaching physicalkeyboard
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
focus-manager
/
keyboard-focus-manager-impl.cpp
diff --git
a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp
b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp
index
54d8afa
..
e6ed691
100644
(file)
--- a/
dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp
+++ b/
dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp
@@
-149,9
+149,11
@@
bool KeyboardFocusManager::DoSetCurrentFocusActor( const unsigned int actorID )
if( actor && actor.IsKeyboardFocusable() )
{
mIsFocusIndicatorEnabled = true;
if( actor && actor.IsKeyboardFocusable() )
{
mIsFocusIndicatorEnabled = true;
- // Draw the focus indicator upon the focused actor
- actor.Add( GetFocusIndicatorActor() );
-
+ // Draw the focus indicator upon the focused actor when PhysicalKeyboard is attached
+ if( mIsKeyboardFocusEnabled )
+ {
+ actor.Add( GetFocusIndicatorActor() );
+ }
// Send notification for the change of focus actor
if( !mFocusChangedSignal.Empty() )
{
// Send notification for the change of focus actor
if( !mFocusChangedSignal.Empty() )
{