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>
41 #include <dali-toolkit/devel-api/controls/control-devel.h>
52 namespace // Unnamed namespace
55 #if defined(DEBUG_ENABLED)
56 Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_KEYBOARD_FOCUS_MANAGER");
59 const char* const IS_FOCUS_GROUP_PROPERTY_NAME = "isKeyboardFocusGroup"; // This property will be replaced by a flag in Control.
61 const char* const FOCUS_BORDER_IMAGE_PATH = DALI_IMAGE_DIR "keyboard_focus.9.png";
65 BaseHandle handle = KeyboardFocusManager::Get();
69 SingletonService singletonService( SingletonService::Get() );
70 if ( singletonService )
72 Toolkit::KeyboardFocusManager manager = Toolkit::KeyboardFocusManager( new Internal::KeyboardFocusManager() );
73 singletonService.Register( typeid( manager ), manager );
81 DALI_TYPE_REGISTRATION_BEGIN_CREATE( Toolkit::KeyboardFocusManager, Dali::BaseHandle, Create, true )
83 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardPreFocusChange", SIGNAL_PRE_FOCUS_CHANGE )
84 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusChanged", SIGNAL_FOCUS_CHANGED )
85 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusGroupChanged", SIGNAL_FOCUS_GROUP_CHANGED )
86 DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusedActorEnterKey", SIGNAL_FOCUSED_ACTOR_ENTER_KEY )
88 DALI_TYPE_REGISTRATION_END()
90 const unsigned int MAX_HISTORY_AMOUNT = 30; ///< Max length of focus history stack
92 } // unnamed namespace
94 Toolkit::KeyboardFocusManager KeyboardFocusManager::Get()
96 Toolkit::KeyboardFocusManager manager;
98 SingletonService singletonService( SingletonService::Get() );
99 if ( singletonService )
101 // Check whether the keyboard focus manager is already created
102 Dali::BaseHandle handle = singletonService.GetSingleton( typeid( Toolkit::KeyboardFocusManager ) );
105 // If so, downcast the handle of singleton to keyboard focus manager
106 manager = Toolkit::KeyboardFocusManager( dynamic_cast< KeyboardFocusManager* >( handle.GetObjectPtr() ) );
113 KeyboardFocusManager::KeyboardFocusManager()
114 : mPreFocusChangeSignal(),
115 mFocusChangedSignal(),
116 mFocusGroupChangedSignal(),
117 mFocusedActorEnterKeySignal(),
118 mCurrentFocusActor( 0 ),
119 mFocusIndicatorActor(),
120 mFocusGroupLoopEnabled( false ),
121 mIsFocusIndicatorEnabled( false ),
122 mIsWaitingKeyboardFocusChangeCommit( false ),
124 mSlotDelegate( this )
126 // TODO: Get FocusIndicatorEnable constant from stylesheet to set mIsFocusIndicatorEnabled.
127 Toolkit::KeyInputFocusManager::Get().UnhandledKeyEventSignal().Connect(mSlotDelegate, &KeyboardFocusManager::OnKeyEvent);
128 Stage::GetCurrent().TouchSignal().Connect( mSlotDelegate, &KeyboardFocusManager::OnTouch );
131 KeyboardFocusManager::~KeyboardFocusManager()
135 bool KeyboardFocusManager::SetCurrentFocusActor( Actor actor )
137 DALI_ASSERT_DEBUG( !mIsWaitingKeyboardFocusChangeCommit && "Calling this function in the PreFocusChangeSignal callback?" );
141 return DoSetCurrentFocusActor( actor.GetId() );
147 bool KeyboardFocusManager::DoSetCurrentFocusActor( const unsigned int actorID )
149 Actor rootActor = Stage::GetCurrent().GetRootLayer();
150 Actor actor = rootActor.FindChildById( actorID );
151 bool success = false;
153 // Check whether the actor is in the stage and is keyboard focusable.
154 if( actor && actor.IsKeyboardFocusable() )
156 if( mIsFocusIndicatorEnabled )
158 actor.Add( GetFocusIndicatorActor() );
160 // Send notification for the change of focus actor
161 Actor currentFocusedActor = GetCurrentFocusActor();
163 if( !mFocusChangedSignal.Empty() )
165 mFocusChangedSignal.Emit(currentFocusedActor, actor);
168 Toolkit::Control currentlyFocusedControl = Toolkit::Control::DownCast(currentFocusedActor);
169 if( currentlyFocusedControl )
171 // Do we need it to remember if it was previously DISABLED?
172 currentlyFocusedControl.SetProperty(DevelControl::Property::STATE, DevelControl::NORMAL );
173 currentlyFocusedControl.ClearKeyInputFocus();
176 DALI_LOG_INFO( gLogFilter, Debug::General, "[%s:%d] Focus Changed\n", __FUNCTION__, __LINE__);
178 // Save the current focused actor
179 mCurrentFocusActor = actorID;
181 Toolkit::Control newlyFocusedControl = Toolkit::Control::DownCast(actor);
182 if( newlyFocusedControl )
184 newlyFocusedControl.SetProperty(DevelControl::Property::STATE, DevelControl::FOCUSED );
185 newlyFocusedControl.SetKeyInputFocus();
188 // Push Current Focused Actor to FocusHistory
189 mFocusHistory.PushBack( &actor.GetBaseObject() );
191 // Delete first element before add new element when Stack is full.
192 if( mFocusHistory.Count() > MAX_HISTORY_AMOUNT )
194 FocusStackIterator beginPos = mFocusHistory.Begin();
195 mFocusHistory.Erase( beginPos );
198 DALI_LOG_INFO( gLogFilter, Debug::General, "[%s:%d] SUCCEED\n", __FUNCTION__, __LINE__);
203 DALI_LOG_WARNING("[%s:%d] FAILED\n", __FUNCTION__, __LINE__);
209 Actor KeyboardFocusManager::GetCurrentFocusActor()
211 Actor rootActor = Stage::GetCurrent().GetRootLayer();
212 return rootActor.FindChildById(mCurrentFocusActor);
215 Actor KeyboardFocusManager::GetCurrentFocusGroup()
217 return GetFocusGroup(GetCurrentFocusActor());
220 void KeyboardFocusManager::MoveFocusBackward()
222 // Find Pre Focused Actor when the list size is more than 1
223 if( mFocusHistory.Count() > 1 )
225 // Delete current focused actor in history
226 FocusStackIterator endPos = mFocusHistory.End();
227 endPos = mFocusHistory.Erase( --endPos );
229 // If pre-focused actors are not on stage, remove them in stack
230 while( !Dali::Actor::DownCast(BaseHandle(mFocusHistory[ mFocusHistory.Count() - 1 ])).OnStage() )
232 endPos = mFocusHistory.Erase( --endPos );
235 // Get pre focused actor
236 BaseObject* object = mFocusHistory[ mFocusHistory.Count() - 1 ];
237 BaseHandle handle( object );
238 Actor preFocusedActor = Dali::Actor::DownCast( handle );
240 // Delete pre focused actor in history because it will pushed again by SetCurrentFocusActor()
241 mFocusHistory.Erase( --endPos );
243 SetCurrentFocusActor( preFocusedActor );
247 bool KeyboardFocusManager::IsLayoutControl(Actor actor) const
249 Toolkit::Control control = Toolkit::Control::DownCast(actor);
250 return control && GetImplementation( control ).IsKeyboardNavigationSupported();
253 Toolkit::Control KeyboardFocusManager::GetParentLayoutControl(Actor actor) const
255 // Get the actor's parent layout control that supports two dimensional keyboard navigation
256 Actor rootActor = Stage::GetCurrent().GetRootLayer();
260 parent = actor.GetParent();
263 while( parent && !IsLayoutControl(parent) && parent != rootActor )
265 parent = parent.GetParent();
268 return Toolkit::Control::DownCast(parent);
271 bool KeyboardFocusManager::MoveFocus(Toolkit::Control::KeyboardFocus::Direction direction)
273 Actor currentFocusActor = GetCurrentFocusActor();
275 bool succeed = false;
277 // Go through the actor's hierarchy until we find a layout control that knows how to move the focus
278 Toolkit::Control parentLayoutControl = GetParentLayoutControl(currentFocusActor);
279 while(parentLayoutControl && !succeed)
281 succeed = DoMoveFocusWithinLayoutControl(parentLayoutControl, currentFocusActor, direction);
282 parentLayoutControl = GetParentLayoutControl(parentLayoutControl);
285 if(!succeed && !mPreFocusChangeSignal.Empty())
287 // Don't know how to move the focus further. The application needs to tell us which actor to move the focus to
288 mIsWaitingKeyboardFocusChangeCommit = true;
289 Actor nextFocusableActor = mPreFocusChangeSignal.Emit(currentFocusActor, Actor(), direction);
290 mIsWaitingKeyboardFocusChangeCommit = false;
292 if ( nextFocusableActor && nextFocusableActor.IsKeyboardFocusable() )
294 // Whether the next focusable actor is a layout control
295 if(IsLayoutControl(nextFocusableActor))
297 // If so, move the focus inside it.
298 Toolkit::Control layoutControl = Toolkit::Control::DownCast(nextFocusableActor);
299 succeed = DoMoveFocusWithinLayoutControl(layoutControl, currentFocusActor, direction);
303 // Otherwise, just set focus to the next focusable actor
304 succeed = SetCurrentFocusActor(nextFocusableActor);
312 bool KeyboardFocusManager::DoMoveFocusWithinLayoutControl(Toolkit::Control control, Actor actor, Toolkit::Control::KeyboardFocus::Direction direction)
314 // Ask the control for the next actor to focus
315 Actor nextFocusableActor = GetImplementation( control ).GetNextKeyboardFocusableActor(actor, direction, mFocusGroupLoopEnabled);
316 if(nextFocusableActor)
318 if(!nextFocusableActor.IsKeyboardFocusable())
320 // If the actor is not focusable, ask the same layout control for the next actor to focus
321 return DoMoveFocusWithinLayoutControl(control, nextFocusableActor, direction);
325 Actor currentFocusActor = GetCurrentFocusActor();
326 Actor committedFocusActor = nextFocusableActor;
328 // We will try to move the focus to the actor. Emit a signal to notify the proposed actor to focus
329 // Signal handler can check the proposed actor and return a different actor if it wishes.
330 if( !mPreFocusChangeSignal.Empty() )
332 mIsWaitingKeyboardFocusChangeCommit = true;
333 committedFocusActor = mPreFocusChangeSignal.Emit(currentFocusActor, nextFocusableActor, direction);
334 mIsWaitingKeyboardFocusChangeCommit = false;
337 if (committedFocusActor && committedFocusActor.IsKeyboardFocusable())
339 // Whether the commited focusable actor is a layout control
340 if(IsLayoutControl(committedFocusActor))
342 // If so, move the focus inside it.
343 Toolkit::Control layoutControl = Toolkit::Control::DownCast(committedFocusActor);
344 return DoMoveFocusWithinLayoutControl(layoutControl, currentFocusActor, direction);
348 // Otherwise, just set focus to the next focusable actor
349 if(committedFocusActor == nextFocusableActor)
351 // If the application hasn't changed our proposed actor, we informs the layout control we will
352 // move the focus to what the control returns. The control might wish to perform some actions
353 // before the focus is actually moved.
354 GetImplementation( control ).OnKeyboardFocusChangeCommitted( committedFocusActor );
357 return SetCurrentFocusActor(committedFocusActor);
368 // No more actor can be focused in the given direction within the same layout control.
373 bool KeyboardFocusManager::DoMoveFocusToNextFocusGroup(bool forward)
375 bool succeed = false;
377 // Get the parent layout control of the current focus group
378 Toolkit::Control parentLayoutControl = GetParentLayoutControl(GetCurrentFocusGroup());
380 while(parentLayoutControl && !succeed)
382 // If the current focus group has a parent layout control, we can probably automatically
383 // move the focus to the next focus group in the forward or backward direction.
384 Toolkit::Control::KeyboardFocus::Direction direction = forward ? Toolkit::Control::KeyboardFocus::RIGHT : Toolkit::Control::KeyboardFocus::LEFT;
385 succeed = DoMoveFocusWithinLayoutControl(parentLayoutControl, GetCurrentFocusActor(), direction);
386 parentLayoutControl = GetParentLayoutControl(parentLayoutControl);
389 if(!mFocusGroupChangedSignal.Empty())
391 // Emit a focus group changed signal. The applicaton can move the focus to a new focus group
392 mFocusGroupChangedSignal.Emit(GetCurrentFocusActor(), forward);
398 void KeyboardFocusManager::DoKeyboardEnter(Actor actor)
402 Toolkit::Control control = Toolkit::Control::DownCast( actor );
405 // Notify the control that enter has been pressed on it.
406 GetImplementation( control ).KeyboardEnter();
409 // Send a notification for the actor.
410 if( !mFocusedActorEnterKeySignal.Empty() )
412 mFocusedActorEnterKeySignal.Emit( actor );
417 void KeyboardFocusManager::ClearFocus()
419 Actor actor = GetCurrentFocusActor();
422 if( mFocusIndicatorActor )
424 actor.Remove( mFocusIndicatorActor );
427 // Send notification for the change of focus actor
428 if( !mFocusChangedSignal.Empty() )
430 mFocusChangedSignal.Emit( actor, Actor() );
433 Toolkit::Control currentlyFocusedControl = Toolkit::Control::DownCast( actor );
434 if( currentlyFocusedControl )
436 currentlyFocusedControl.SetProperty( DevelControl::Property::STATE, DevelControl::NORMAL );
437 currentlyFocusedControl.ClearKeyInputFocus();
441 mCurrentFocusActor = 0;
442 mIsFocusIndicatorEnabled = false;
445 void KeyboardFocusManager::SetFocusGroupLoop(bool enabled)
447 mFocusGroupLoopEnabled = enabled;
450 bool KeyboardFocusManager::GetFocusGroupLoop() const
452 return mFocusGroupLoopEnabled;
455 void KeyboardFocusManager::SetAsFocusGroup(Actor actor, bool isFocusGroup)
459 // Create/Set focus group property.
460 actor.RegisterProperty( IS_FOCUS_GROUP_PROPERTY_NAME, isFocusGroup, Property::READ_WRITE );
464 bool KeyboardFocusManager::IsFocusGroup(Actor actor) const
466 // Check whether the actor is a focus group
467 bool isFocusGroup = false;
471 Property::Index propertyIsFocusGroup = actor.GetPropertyIndex(IS_FOCUS_GROUP_PROPERTY_NAME);
472 if(propertyIsFocusGroup != Property::INVALID_INDEX)
474 isFocusGroup = actor.GetProperty<bool>(propertyIsFocusGroup);
481 Actor KeyboardFocusManager::GetFocusGroup(Actor actor)
483 // Go through the actor's hierarchy to check which focus group the actor belongs to
484 while (actor && !IsFocusGroup(actor))
486 actor = actor.GetParent();
492 void KeyboardFocusManager::SetFocusIndicatorActor(Actor indicator)
494 if(mFocusIndicatorActor != indicator)
496 Actor currentFocusActor = GetCurrentFocusActor();
497 if(currentFocusActor)
499 // The new focus indicator should be added to the current focused actor immediately
500 if(mFocusIndicatorActor)
502 currentFocusActor.Remove(mFocusIndicatorActor);
507 currentFocusActor.Add(indicator);
511 mFocusIndicatorActor = indicator;
515 Actor KeyboardFocusManager::GetFocusIndicatorActor()
517 if( ! mFocusIndicatorActor )
519 // Create the default if it hasn't been set and one that's shared by all the keyboard focusable actors
520 mFocusIndicatorActor = Toolkit::ImageView::New( FOCUS_BORDER_IMAGE_PATH );
521 mFocusIndicatorActor.SetParentOrigin( ParentOrigin::CENTER );
523 // Apply size constraint to the focus indicator
524 mFocusIndicatorActor.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
527 return mFocusIndicatorActor;
530 void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event)
532 AccessibilityAdaptor accessibilityAdaptor = AccessibilityAdaptor::Get();
533 bool isAccessibilityEnabled = accessibilityAdaptor.IsEnabled();
535 Toolkit::AccessibilityManager accessibilityManager = Toolkit::AccessibilityManager::Get();
537 std::string keyName = event.keyPressedName;
539 bool isFocusStartableKey = false;
541 if(event.state == KeyEvent::Down)
543 if (keyName == "Left")
545 if(!isAccessibilityEnabled)
547 if(!mIsFocusIndicatorEnabled)
549 // Show focus indicator
550 mIsFocusIndicatorEnabled = true;
554 // Move the focus towards left
555 MoveFocus(Toolkit::Control::KeyboardFocus::LEFT);
558 isFocusStartableKey = true;
562 // Move the accessibility focus backward
563 accessibilityManager.MoveFocusBackward();
566 else if (keyName == "Right")
568 if(!isAccessibilityEnabled)
570 if(!mIsFocusIndicatorEnabled)
572 // Show focus indicator
573 mIsFocusIndicatorEnabled = true;
577 // Move the focus towards right
578 MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
583 // Move the accessibility focus forward
584 accessibilityManager.MoveFocusForward();
587 isFocusStartableKey = true;
589 else if (keyName == "Up" && !isAccessibilityEnabled)
591 if(!mIsFocusIndicatorEnabled)
593 // Show focus indicator
594 mIsFocusIndicatorEnabled = true;
598 // Move the focus towards up
599 MoveFocus(Toolkit::Control::KeyboardFocus::UP);
602 isFocusStartableKey = true;
604 else if (keyName == "Down" && !isAccessibilityEnabled)
606 if(!mIsFocusIndicatorEnabled)
608 // Show focus indicator
609 mIsFocusIndicatorEnabled = true;
613 // Move the focus towards down
614 MoveFocus(Toolkit::Control::KeyboardFocus::DOWN);
617 isFocusStartableKey = true;
619 else if (keyName == "Prior" && !isAccessibilityEnabled)
621 if(!mIsFocusIndicatorEnabled)
623 // Show focus indicator
624 mIsFocusIndicatorEnabled = true;
628 // Move the focus towards the previous page
629 MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_UP);
632 isFocusStartableKey = true;
634 else if (keyName == "Next" && !isAccessibilityEnabled)
636 if(!mIsFocusIndicatorEnabled)
638 // Show focus indicator
639 mIsFocusIndicatorEnabled = true;
643 // Move the focus towards the next page
644 MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_DOWN);
647 isFocusStartableKey = true;
649 else if (keyName == "Tab" && !isAccessibilityEnabled)
651 if(!mIsFocusIndicatorEnabled)
653 // Show focus indicator
654 mIsFocusIndicatorEnabled = true;
658 // "Tab" key changes the focus group in the forward direction and
659 // "Shift-Tab" key changes it in the backward direction.
660 DoMoveFocusToNextFocusGroup(!event.IsShiftModifier());
663 isFocusStartableKey = true;
665 else if (keyName == "space" && !isAccessibilityEnabled)
667 if(!mIsFocusIndicatorEnabled)
669 // Show focus indicator
670 mIsFocusIndicatorEnabled = true;
673 isFocusStartableKey = true;
675 else if (keyName == "" && !isAccessibilityEnabled)
677 // Check the fake key event for evas-plugin case
678 if(!mIsFocusIndicatorEnabled)
680 // Show focus indicator
681 mIsFocusIndicatorEnabled = true;
684 isFocusStartableKey = true;
686 else if (keyName == "Backspace" && !isAccessibilityEnabled)
688 // Emit signal to go back to the previous view???
690 else if (keyName == "Escape" && !isAccessibilityEnabled)
694 else if(event.state == KeyEvent::Up)
696 if (keyName == "Return")
698 if(!mIsFocusIndicatorEnabled && !isAccessibilityEnabled)
700 // Show focus indicator
701 mIsFocusIndicatorEnabled = true;
705 // The focused actor has enter pressed on it
707 if( !isAccessibilityEnabled )
709 actor = GetCurrentFocusActor();
713 actor = accessibilityManager.GetCurrentFocusActor();
718 DoKeyboardEnter( actor );
722 isFocusStartableKey = true;
726 if(isFocusStartableKey && mIsFocusIndicatorEnabled && !isAccessibilityEnabled)
728 Actor actor = GetCurrentFocusActor();
731 // Make sure the focused actor is highlighted
732 actor.Add( GetFocusIndicatorActor() );
736 // No actor is focused but keyboard focus is activated by the key press
737 // Let's try to move the initial focus
738 MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
743 void KeyboardFocusManager::OnTouch(const TouchData& touch)
745 // Clear the focus when user touch the screen.
746 // We only do this on a Down event, otherwise the clear action may override a manually focused actor.
747 if( ( touch.GetPointCount() < 1 ) || ( touch.GetState( 0 ) == PointState::DOWN ) )
753 Toolkit::KeyboardFocusManager::PreFocusChangeSignalType& KeyboardFocusManager::PreFocusChangeSignal()
755 return mPreFocusChangeSignal;
758 Toolkit::KeyboardFocusManager::FocusChangedSignalType& KeyboardFocusManager::FocusChangedSignal()
760 return mFocusChangedSignal;
763 Toolkit::KeyboardFocusManager::FocusGroupChangedSignalType& KeyboardFocusManager::FocusGroupChangedSignal()
765 return mFocusGroupChangedSignal;
768 Toolkit::KeyboardFocusManager::FocusedActorEnterKeySignalType& KeyboardFocusManager::FocusedActorEnterKeySignal()
770 return mFocusedActorEnterKeySignal;
773 bool KeyboardFocusManager::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
775 Dali::BaseHandle handle( object );
777 bool connected( true );
778 KeyboardFocusManager* manager = static_cast< KeyboardFocusManager* >( object ); // TypeRegistry guarantees that this is the correct type.
780 if( 0 == strcmp( signalName.c_str(), SIGNAL_PRE_FOCUS_CHANGE ) )
782 manager->PreFocusChangeSignal().Connect( tracker, functor );
784 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUS_CHANGED ) )
786 manager->FocusChangedSignal().Connect( tracker, functor );
788 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUS_GROUP_CHANGED ) )
790 manager->FocusGroupChangedSignal().Connect( tracker, functor );
792 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUSED_ACTOR_ENTER_KEY ) )
794 manager->FocusedActorEnterKeySignal().Connect( tracker, functor );
798 // signalName does not match any signal
805 } // namespace Internal
807 } // namespace Toolkit