2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "keyboard-focus-manager-impl.h"
22 #include <cstring> // for strcmp
23 #include <dali/public-api/actors/layer.h>
24 #include <dali/devel-api/adaptor-framework/accessibility-adaptor.h>
25 #include <dali/devel-api/adaptor-framework/singleton-service.h>
26 #include <dali/public-api/animation/constraints.h>
27 #include <dali/public-api/common/stage.h>
28 #include <dali/public-api/events/key-event.h>
29 #include <dali/public-api/events/touch-data.h>
30 #include <dali/public-api/object/type-registry.h>
31 #include <dali/public-api/object/type-registry-helper.h>
32 #include <dali/public-api/images/resource-image.h>
33 #include <dali/integration-api/debug.h>
36 #include <dali-toolkit/public-api/controls/control.h>
37 #include <dali-toolkit/public-api/controls/control-impl.h>
38 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
39 #include <dali-toolkit/public-api/accessibility-manager/accessibility-manager.h>
40 #include <dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h>
51 namespace // Unnamed namespace
54 #if defined(DEBUG_ENABLED)
55 Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_KEYBOARD_FOCUS_MANAGER");
58 const char* const IS_FOCUS_GROUP_PROPERTY_NAME = "isKeyboardFocusGroup"; // This property will be replaced by a flag in Control.
60 const char* const FOCUS_BORDER_IMAGE_PATH = DALI_IMAGE_DIR "keyboard_focus.9.png";
64 BaseHandle handle = KeyboardFocusManager::Get();
68 SingletonService singletonService( SingletonService::Get() );
69 if ( singletonService )
71 Toolkit::KeyboardFocusManager manager = Toolkit::KeyboardFocusManager( new Internal::KeyboardFocusManager() );
72 singletonService.Register( typeid( manager ), manager );
80 DALI_TYPE_REGISTRATION_BEGIN_CREATE( Toolkit::KeyboardFocusManager, Dali::BaseHandle, Create, true )
82 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardPreFocusChange", SIGNAL_PRE_FOCUS_CHANGE )
83 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusChanged", SIGNAL_FOCUS_CHANGED )
84 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusGroupChanged", SIGNAL_FOCUS_GROUP_CHANGED )
85 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusedActorEnterKey", SIGNAL_FOCUSED_ACTOR_ENTER_KEY )
87 DALI_TYPE_REGISTRATION_END()
89 const unsigned int MAX_HISTORY_AMOUNT = 30; ///< Max length of focus history stack
91 } // unnamed namespace
93 Toolkit::KeyboardFocusManager KeyboardFocusManager::Get()
95 Toolkit::KeyboardFocusManager manager;
97 SingletonService singletonService( SingletonService::Get() );
98 if ( singletonService )
100 // Check whether the keyboard focus manager is already created
101 Dali::BaseHandle handle = singletonService.GetSingleton( typeid( Toolkit::KeyboardFocusManager ) );
104 // If so, downcast the handle of singleton to keyboard focus manager
105 manager = Toolkit::KeyboardFocusManager( dynamic_cast< KeyboardFocusManager* >( handle.GetObjectPtr() ) );
112 KeyboardFocusManager::KeyboardFocusManager()
113 : mPreFocusChangeSignal(),
114 mFocusChangedSignal(),
115 mFocusGroupChangedSignal(),
116 mFocusedActorEnterKeySignal(),
117 mCurrentFocusActor( 0 ),
118 mFocusIndicatorActor(),
119 mFocusGroupLoopEnabled( false ),
120 mIsKeyboardFocusEnabled( false ),
121 mIsFocusIndicatorEnabled( false ),
122 mIsWaitingKeyboardFocusChangeCommit( false ),
124 mSlotDelegate( this )
126 OnPhysicalKeyboardStatusChanged(PhysicalKeyboard::Get());
128 Toolkit::KeyInputFocusManager::Get().UnhandledKeyEventSignal().Connect(mSlotDelegate, &KeyboardFocusManager::OnKeyEvent);
129 Stage::GetCurrent().TouchSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch );
130 PhysicalKeyboard::Get().StatusChangedSignal().Connect(mSlotDelegate, &KeyboardFocusManager::OnPhysicalKeyboardStatusChanged);
133 KeyboardFocusManager::~KeyboardFocusManager()
137 bool KeyboardFocusManager::SetCurrentFocusActor( Actor actor )
139 DALI_ASSERT_DEBUG( !mIsWaitingKeyboardFocusChangeCommit && "Calling this function in the PreFocusChangeSignal callback?" );
143 return DoSetCurrentFocusActor( actor.GetId() );
149 bool KeyboardFocusManager::DoSetCurrentFocusActor( const unsigned int actorID )
151 Actor rootActor = Stage::GetCurrent().GetRootLayer();
152 Actor actor = rootActor.FindChildById( actorID );
153 bool success = false;
155 // Check whether the actor is in the stage and is keyboard focusable.
156 if( actor && actor.IsKeyboardFocusable() )
158 mIsFocusIndicatorEnabled = true;
159 // Draw the focus indicator upon the focused actor when PhysicalKeyboard is attached
160 if( mIsKeyboardFocusEnabled )
162 actor.Add( GetFocusIndicatorActor() );
164 // Send notification for the change of focus actor
165 if( !mFocusChangedSignal.Empty() )
167 mFocusChangedSignal.Emit(GetCurrentFocusActor(), actor);
170 DALI_LOG_INFO( gLogFilter, Debug::General, "[%s:%d] Focus Changed\n", __FUNCTION__, __LINE__);
172 // Save the current focused actor
173 mCurrentFocusActor = actorID;
175 // Push Current Focused Actor to FocusHistory
176 mFocusHistory.PushBack( &actor.GetBaseObject() );
178 // Delete first element before add new element when Stack is full.
179 if( mFocusHistory.Count() > MAX_HISTORY_AMOUNT )
181 FocusStackIterator beginPos = mFocusHistory.Begin();
182 mFocusHistory.Erase( beginPos );
185 DALI_LOG_INFO( gLogFilter, Debug::General, "[%s:%d] SUCCEED\n", __FUNCTION__, __LINE__);
190 DALI_LOG_WARNING("[%s:%d] FAILED\n", __FUNCTION__, __LINE__);
196 Actor KeyboardFocusManager::GetCurrentFocusActor()
198 Actor rootActor = Stage::GetCurrent().GetRootLayer();
199 return rootActor.FindChildById(mCurrentFocusActor);
202 Actor KeyboardFocusManager::GetCurrentFocusGroup()
204 return GetFocusGroup(GetCurrentFocusActor());
207 void KeyboardFocusManager::MoveFocusBackward()
209 // Find Pre Focused Actor when the list size is more than 1
210 if( mFocusHistory.Count() > 1 )
212 // Delete current focused actor in history
213 FocusStackIterator endPos = mFocusHistory.End();
214 endPos = mFocusHistory.Erase( --endPos );
216 // If pre-focused actors are not on stage, remove them in stack
217 while( !Dali::Actor::DownCast(BaseHandle(mFocusHistory[ mFocusHistory.Count() - 1 ])).OnStage() )
219 endPos = mFocusHistory.Erase( --endPos );
222 // Get pre focused actor
223 BaseObject* object = mFocusHistory[ mFocusHistory.Count() - 1 ];
224 BaseHandle handle( object );
225 Actor preFocusedActor = Dali::Actor::DownCast( handle );
227 // Delete pre focused actor in history because it will pushed again by SetCurrentFocusActor()
228 mFocusHistory.Erase( --endPos );
230 SetCurrentFocusActor( preFocusedActor );
234 bool KeyboardFocusManager::IsLayoutControl(Actor actor) const
236 Toolkit::Control control = Toolkit::Control::DownCast(actor);
237 return control && GetImplementation( control ).IsKeyboardNavigationSupported();
240 Toolkit::Control KeyboardFocusManager::GetParentLayoutControl(Actor actor) const
242 // Get the actor's parent layout control that supports two dimensional keyboard navigation
243 Actor rootActor = Stage::GetCurrent().GetRootLayer();
247 parent = actor.GetParent();
250 while( parent && !IsLayoutControl(parent) && parent != rootActor )
252 parent = parent.GetParent();
255 return Toolkit::Control::DownCast(parent);
258 bool KeyboardFocusManager::MoveFocus(Toolkit::Control::KeyboardFocus::Direction direction)
260 Actor currentFocusActor = GetCurrentFocusActor();
262 bool succeed = false;
264 // Go through the actor's hierarchy until we find a layout control that knows how to move the focus
265 Toolkit::Control parentLayoutControl = GetParentLayoutControl(currentFocusActor);
266 while(parentLayoutControl && !succeed)
268 succeed = DoMoveFocusWithinLayoutControl(parentLayoutControl, currentFocusActor, direction);
269 parentLayoutControl = GetParentLayoutControl(parentLayoutControl);
272 if(!succeed && !mPreFocusChangeSignal.Empty())
274 // Don't know how to move the focus further. The application needs to tell us which actor to move the focus to
275 mIsWaitingKeyboardFocusChangeCommit = true;
276 Actor nextFocusableActor = mPreFocusChangeSignal.Emit(currentFocusActor, Actor(), direction);
277 mIsWaitingKeyboardFocusChangeCommit = false;
279 if ( nextFocusableActor && nextFocusableActor.IsKeyboardFocusable() )
281 // Whether the next focusable actor is a layout control
282 if(IsLayoutControl(nextFocusableActor))
284 // If so, move the focus inside it.
285 Toolkit::Control layoutControl = Toolkit::Control::DownCast(nextFocusableActor);
286 succeed = DoMoveFocusWithinLayoutControl(layoutControl, currentFocusActor, direction);
290 // Otherwise, just set focus to the next focusable actor
291 succeed = SetCurrentFocusActor(nextFocusableActor);
299 bool KeyboardFocusManager::DoMoveFocusWithinLayoutControl(Toolkit::Control control, Actor actor, Toolkit::Control::KeyboardFocus::Direction direction)
301 // Ask the control for the next actor to focus
302 Actor nextFocusableActor = GetImplementation( control ).GetNextKeyboardFocusableActor(actor, direction, mFocusGroupLoopEnabled);
303 if(nextFocusableActor)
305 if(!nextFocusableActor.IsKeyboardFocusable())
307 // If the actor is not focusable, ask the same layout control for the next actor to focus
308 return DoMoveFocusWithinLayoutControl(control, nextFocusableActor, direction);
312 Actor currentFocusActor = GetCurrentFocusActor();
313 Actor committedFocusActor = nextFocusableActor;
315 // We will try to move the focus to the actor. Emit a signal to notify the proposed actor to focus
316 // Signal handler can check the proposed actor and return a different actor if it wishes.
317 if( !mPreFocusChangeSignal.Empty() )
319 mIsWaitingKeyboardFocusChangeCommit = true;
320 committedFocusActor = mPreFocusChangeSignal.Emit(currentFocusActor, nextFocusableActor, direction);
321 mIsWaitingKeyboardFocusChangeCommit = false;
324 if (committedFocusActor && committedFocusActor.IsKeyboardFocusable())
326 // Whether the commited focusable actor is a layout control
327 if(IsLayoutControl(committedFocusActor))
329 // If so, move the focus inside it.
330 Toolkit::Control layoutControl = Toolkit::Control::DownCast(committedFocusActor);
331 return DoMoveFocusWithinLayoutControl(layoutControl, currentFocusActor, direction);
335 // Otherwise, just set focus to the next focusable actor
336 if(committedFocusActor == nextFocusableActor)
338 // If the application hasn't changed our proposed actor, we informs the layout control we will
339 // move the focus to what the control returns. The control might wish to perform some actions
340 // before the focus is actually moved.
341 GetImplementation( control ).OnKeyboardFocusChangeCommitted( committedFocusActor );
344 return SetCurrentFocusActor(committedFocusActor);
355 // No more actor can be focused in the given direction within the same layout control.
360 bool KeyboardFocusManager::DoMoveFocusToNextFocusGroup(bool forward)
362 bool succeed = false;
364 // Get the parent layout control of the current focus group
365 Toolkit::Control parentLayoutControl = GetParentLayoutControl(GetCurrentFocusGroup());
367 while(parentLayoutControl && !succeed)
369 // If the current focus group has a parent layout control, we can probably automatically
370 // move the focus to the next focus group in the forward or backward direction.
371 Toolkit::Control::KeyboardFocus::Direction direction = forward ? Toolkit::Control::KeyboardFocus::RIGHT : Toolkit::Control::KeyboardFocus::LEFT;
372 succeed = DoMoveFocusWithinLayoutControl(parentLayoutControl, GetCurrentFocusActor(), direction);
373 parentLayoutControl = GetParentLayoutControl(parentLayoutControl);
376 if(!mFocusGroupChangedSignal.Empty())
378 // Emit a focus group changed signal. The applicaton can move the focus to a new focus group
379 mFocusGroupChangedSignal.Emit(GetCurrentFocusActor(), forward);
385 void KeyboardFocusManager::DoKeyboardEnter(Actor actor)
389 Toolkit::Control control = Toolkit::Control::DownCast( actor );
392 // Notify the control that enter has been pressed on it.
393 GetImplementation( control ).KeyboardEnter();
396 // Send a notification for the actor.
397 if( !mFocusedActorEnterKeySignal.Empty() )
399 mFocusedActorEnterKeySignal.Emit( actor );
404 void KeyboardFocusManager::ClearFocus()
406 Actor actor = GetCurrentFocusActor();
409 if(mFocusIndicatorActor)
411 actor.Remove(mFocusIndicatorActor);
414 // Send notification for the change of focus actor
415 if( !mFocusChangedSignal.Empty() )
417 mFocusChangedSignal.Emit(actor, Actor());
421 mCurrentFocusActor = 0;
422 mIsFocusIndicatorEnabled = false;
425 void KeyboardFocusManager::SetFocusGroupLoop(bool enabled)
427 mFocusGroupLoopEnabled = enabled;
430 bool KeyboardFocusManager::GetFocusGroupLoop() const
432 return mFocusGroupLoopEnabled;
435 void KeyboardFocusManager::SetAsFocusGroup(Actor actor, bool isFocusGroup)
439 // Create/Set focus group property.
440 actor.RegisterProperty( IS_FOCUS_GROUP_PROPERTY_NAME, isFocusGroup, Property::READ_WRITE );
444 bool KeyboardFocusManager::IsFocusGroup(Actor actor) const
446 // Check whether the actor is a focus group
447 bool isFocusGroup = false;
451 Property::Index propertyIsFocusGroup = actor.GetPropertyIndex(IS_FOCUS_GROUP_PROPERTY_NAME);
452 if(propertyIsFocusGroup != Property::INVALID_INDEX)
454 isFocusGroup = actor.GetProperty<bool>(propertyIsFocusGroup);
461 Actor KeyboardFocusManager::GetFocusGroup(Actor actor)
463 // Go through the actor's hierarchy to check which focus group the actor belongs to
464 while (actor && !IsFocusGroup(actor))
466 actor = actor.GetParent();
472 void KeyboardFocusManager::SetFocusIndicatorActor(Actor indicator)
474 if(mFocusIndicatorActor != indicator)
476 Actor currentFocusActor = GetCurrentFocusActor();
477 if(currentFocusActor)
479 // The new focus indicator should be added to the current focused actor immediately
480 if(mFocusIndicatorActor)
482 currentFocusActor.Remove(mFocusIndicatorActor);
487 currentFocusActor.Add(indicator);
491 mFocusIndicatorActor = indicator;
495 Actor KeyboardFocusManager::GetFocusIndicatorActor()
497 if( ! mFocusIndicatorActor )
499 // Create the default if it hasn't been set and one that's shared by all the keyboard focusable actors
500 mFocusIndicatorActor = Toolkit::ImageView::New( FOCUS_BORDER_IMAGE_PATH );
501 mFocusIndicatorActor.SetParentOrigin( ParentOrigin::CENTER );
503 // Apply size constraint to the focus indicator
504 mFocusIndicatorActor.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
507 return mFocusIndicatorActor;
510 void KeyboardFocusManager::OnPhysicalKeyboardStatusChanged(PhysicalKeyboard keyboard)
512 mIsKeyboardFocusEnabled = keyboard.IsAttached();
514 if(mIsKeyboardFocusEnabled)
516 // Show indicator when keyboard focus turned on if there is focused actor.
517 Actor actor = GetCurrentFocusActor();
520 actor.Add( GetFocusIndicatorActor() );
522 mIsFocusIndicatorEnabled = true;
526 // Hide indicator when keyboard focus turned off
527 Actor actor = GetCurrentFocusActor();
528 if( actor && mFocusIndicatorActor )
530 actor.Remove( mFocusIndicatorActor );
532 mIsFocusIndicatorEnabled = false;
536 void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event)
538 if(!mIsKeyboardFocusEnabled)
543 AccessibilityAdaptor accessibilityAdaptor = AccessibilityAdaptor::Get();
544 bool isAccessibilityEnabled = accessibilityAdaptor.IsEnabled();
546 Toolkit::AccessibilityManager accessibilityManager = Toolkit::AccessibilityManager::Get();
548 std::string keyName = event.keyPressedName;
550 bool isFocusStartableKey = false;
552 if(event.state == KeyEvent::Down)
554 if (keyName == "Left")
556 if(!isAccessibilityEnabled)
558 if(!mIsFocusIndicatorEnabled)
560 // Show focus indicator
561 mIsFocusIndicatorEnabled = true;
565 // Move the focus towards left
566 MoveFocus(Toolkit::Control::KeyboardFocus::LEFT);
569 isFocusStartableKey = true;
573 // Move the accessibility focus backward
574 accessibilityManager.MoveFocusBackward();
577 else if (keyName == "Right")
579 if(!isAccessibilityEnabled)
581 if(!mIsFocusIndicatorEnabled)
583 // Show focus indicator
584 mIsFocusIndicatorEnabled = true;
588 // Move the focus towards right
589 MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
594 // Move the accessibility focus forward
595 accessibilityManager.MoveFocusForward();
598 isFocusStartableKey = true;
600 else if (keyName == "Up" && !isAccessibilityEnabled)
602 if(!mIsFocusIndicatorEnabled)
604 // Show focus indicator
605 mIsFocusIndicatorEnabled = true;
609 // Move the focus towards up
610 MoveFocus(Toolkit::Control::KeyboardFocus::UP);
613 isFocusStartableKey = true;
615 else if (keyName == "Down" && !isAccessibilityEnabled)
617 if(!mIsFocusIndicatorEnabled)
619 // Show focus indicator
620 mIsFocusIndicatorEnabled = true;
624 // Move the focus towards down
625 MoveFocus(Toolkit::Control::KeyboardFocus::DOWN);
628 isFocusStartableKey = true;
630 else if (keyName == "Prior" && !isAccessibilityEnabled)
632 if(!mIsFocusIndicatorEnabled)
634 // Show focus indicator
635 mIsFocusIndicatorEnabled = true;
639 // Move the focus towards the previous page
640 MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_UP);
643 isFocusStartableKey = true;
645 else if (keyName == "Next" && !isAccessibilityEnabled)
647 if(!mIsFocusIndicatorEnabled)
649 // Show focus indicator
650 mIsFocusIndicatorEnabled = true;
654 // Move the focus towards the next page
655 MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_DOWN);
658 isFocusStartableKey = true;
660 else if (keyName == "Tab" && !isAccessibilityEnabled)
662 if(!mIsFocusIndicatorEnabled)
664 // Show focus indicator
665 mIsFocusIndicatorEnabled = true;
669 // "Tab" key changes the focus group in the forward direction and
670 // "Shift-Tab" key changes it in the backward direction.
671 DoMoveFocusToNextFocusGroup(!event.IsShiftModifier());
674 isFocusStartableKey = true;
676 else if (keyName == "space" && !isAccessibilityEnabled)
678 if(!mIsFocusIndicatorEnabled)
680 // Show focus indicator
681 mIsFocusIndicatorEnabled = true;
684 isFocusStartableKey = true;
686 else if (keyName == "" && !isAccessibilityEnabled)
688 // Check the fake key event for evas-plugin case
689 if(!mIsFocusIndicatorEnabled)
691 // Show focus indicator
692 mIsFocusIndicatorEnabled = true;
695 isFocusStartableKey = true;
697 else if (keyName == "Backspace" && !isAccessibilityEnabled)
699 // Emit signal to go back to the previous view???
701 else if (keyName == "Escape" && !isAccessibilityEnabled)
705 else if(event.state == KeyEvent::Up)
707 if (keyName == "Return")
709 if(!mIsFocusIndicatorEnabled && !isAccessibilityEnabled)
711 // Show focus indicator
712 mIsFocusIndicatorEnabled = true;
716 // The focused actor has enter pressed on it
718 if( !isAccessibilityEnabled )
720 actor = GetCurrentFocusActor();
724 actor = accessibilityManager.GetCurrentFocusActor();
729 DoKeyboardEnter( actor );
733 isFocusStartableKey = true;
737 if(isFocusStartableKey && mIsFocusIndicatorEnabled && !isAccessibilityEnabled)
739 Actor actor = GetCurrentFocusActor();
742 // Make sure the focused actor is highlighted
743 actor.Add( GetFocusIndicatorActor() );
747 // No actor is focused but keyboard focus is activated by the key press
748 // Let's try to move the initial focus
749 MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
754 void KeyboardFocusManager::OnTouch(const TouchData& touch)
756 // Clear the focus when user touch the screen.
757 // We only do this on a Down event, otherwise the clear action may override a manually focused actor.
758 if( ( touch.GetPointCount() < 1 ) || ( touch.GetState( 0 ) == PointState::DOWN ) )
764 Toolkit::KeyboardFocusManager::PreFocusChangeSignalType& KeyboardFocusManager::PreFocusChangeSignal()
766 return mPreFocusChangeSignal;
769 Toolkit::KeyboardFocusManager::FocusChangedSignalType& KeyboardFocusManager::FocusChangedSignal()
771 return mFocusChangedSignal;
774 Toolkit::KeyboardFocusManager::FocusGroupChangedSignalType& KeyboardFocusManager::FocusGroupChangedSignal()
776 return mFocusGroupChangedSignal;
779 Toolkit::KeyboardFocusManager::FocusedActorEnterKeySignalType& KeyboardFocusManager::FocusedActorEnterKeySignal()
781 return mFocusedActorEnterKeySignal;
784 bool KeyboardFocusManager::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
786 Dali::BaseHandle handle( object );
788 bool connected( true );
789 KeyboardFocusManager* manager = static_cast< KeyboardFocusManager* >( object ); // TypeRegistry guarantees that this is the correct type.
791 if( 0 == strcmp( signalName.c_str(), SIGNAL_PRE_FOCUS_CHANGE ) )
793 manager->PreFocusChangeSignal().Connect( tracker, functor );
795 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUS_CHANGED ) )
797 manager->FocusChangedSignal().Connect( tracker, functor );
799 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUS_GROUP_CHANGED ) )
801 manager->FocusGroupChangedSignal().Connect( tracker, functor );
803 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUSED_ACTOR_ENTER_KEY ) )
805 manager->FocusedActorEnterKeySignal().Connect( tracker, functor );
809 // signalName does not match any signal
816 } // namespace Internal
818 } // namespace Toolkit