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 );
175 DALI_LOG_INFO( gLogFilter, Debug::General, "[%s:%d] Focus Changed\n", __FUNCTION__, __LINE__);
177 // Save the current focused actor
178 mCurrentFocusActor = actorID;
180 Toolkit::Control newlyFocusedControl = Toolkit::Control::DownCast(actor);
181 if( newlyFocusedControl )
183 newlyFocusedControl.SetProperty(DevelControl::Property::STATE, DevelControl::FOCUSED );
186 // Push Current Focused Actor to FocusHistory
187 mFocusHistory.PushBack( &actor.GetBaseObject() );
189 // Delete first element before add new element when Stack is full.
190 if( mFocusHistory.Count() > MAX_HISTORY_AMOUNT )
192 FocusStackIterator beginPos = mFocusHistory.Begin();
193 mFocusHistory.Erase( beginPos );
196 DALI_LOG_INFO( gLogFilter, Debug::General, "[%s:%d] SUCCEED\n", __FUNCTION__, __LINE__);
201 DALI_LOG_WARNING("[%s:%d] FAILED\n", __FUNCTION__, __LINE__);
207 Actor KeyboardFocusManager::GetCurrentFocusActor()
209 Actor rootActor = Stage::GetCurrent().GetRootLayer();
210 return rootActor.FindChildById(mCurrentFocusActor);
213 Actor KeyboardFocusManager::GetCurrentFocusGroup()
215 return GetFocusGroup(GetCurrentFocusActor());
218 void KeyboardFocusManager::MoveFocusBackward()
220 // Find Pre Focused Actor when the list size is more than 1
221 if( mFocusHistory.Count() > 1 )
223 // Delete current focused actor in history
224 FocusStackIterator endPos = mFocusHistory.End();
225 endPos = mFocusHistory.Erase( --endPos );
227 // If pre-focused actors are not on stage, remove them in stack
228 while( !Dali::Actor::DownCast(BaseHandle(mFocusHistory[ mFocusHistory.Count() - 1 ])).OnStage() )
230 endPos = mFocusHistory.Erase( --endPos );
233 // Get pre focused actor
234 BaseObject* object = mFocusHistory[ mFocusHistory.Count() - 1 ];
235 BaseHandle handle( object );
236 Actor preFocusedActor = Dali::Actor::DownCast( handle );
238 // Delete pre focused actor in history because it will pushed again by SetCurrentFocusActor()
239 mFocusHistory.Erase( --endPos );
241 SetCurrentFocusActor( preFocusedActor );
245 bool KeyboardFocusManager::IsLayoutControl(Actor actor) const
247 Toolkit::Control control = Toolkit::Control::DownCast(actor);
248 return control && GetImplementation( control ).IsKeyboardNavigationSupported();
251 Toolkit::Control KeyboardFocusManager::GetParentLayoutControl(Actor actor) const
253 // Get the actor's parent layout control that supports two dimensional keyboard navigation
254 Actor rootActor = Stage::GetCurrent().GetRootLayer();
258 parent = actor.GetParent();
261 while( parent && !IsLayoutControl(parent) && parent != rootActor )
263 parent = parent.GetParent();
266 return Toolkit::Control::DownCast(parent);
269 bool KeyboardFocusManager::MoveFocus(Toolkit::Control::KeyboardFocus::Direction direction)
271 Actor currentFocusActor = GetCurrentFocusActor();
273 bool succeed = false;
275 // Go through the actor's hierarchy until we find a layout control that knows how to move the focus
276 Toolkit::Control parentLayoutControl = GetParentLayoutControl(currentFocusActor);
277 while(parentLayoutControl && !succeed)
279 succeed = DoMoveFocusWithinLayoutControl(parentLayoutControl, currentFocusActor, direction);
280 parentLayoutControl = GetParentLayoutControl(parentLayoutControl);
283 if(!succeed && !mPreFocusChangeSignal.Empty())
285 // Don't know how to move the focus further. The application needs to tell us which actor to move the focus to
286 mIsWaitingKeyboardFocusChangeCommit = true;
287 Actor nextFocusableActor = mPreFocusChangeSignal.Emit(currentFocusActor, Actor(), direction);
288 mIsWaitingKeyboardFocusChangeCommit = false;
290 if ( nextFocusableActor && nextFocusableActor.IsKeyboardFocusable() )
292 // Whether the next focusable actor is a layout control
293 if(IsLayoutControl(nextFocusableActor))
295 // If so, move the focus inside it.
296 Toolkit::Control layoutControl = Toolkit::Control::DownCast(nextFocusableActor);
297 succeed = DoMoveFocusWithinLayoutControl(layoutControl, currentFocusActor, direction);
301 // Otherwise, just set focus to the next focusable actor
302 succeed = SetCurrentFocusActor(nextFocusableActor);
310 bool KeyboardFocusManager::DoMoveFocusWithinLayoutControl(Toolkit::Control control, Actor actor, Toolkit::Control::KeyboardFocus::Direction direction)
312 // Ask the control for the next actor to focus
313 Actor nextFocusableActor = GetImplementation( control ).GetNextKeyboardFocusableActor(actor, direction, mFocusGroupLoopEnabled);
314 if(nextFocusableActor)
316 if(!nextFocusableActor.IsKeyboardFocusable())
318 // If the actor is not focusable, ask the same layout control for the next actor to focus
319 return DoMoveFocusWithinLayoutControl(control, nextFocusableActor, direction);
323 Actor currentFocusActor = GetCurrentFocusActor();
324 Actor committedFocusActor = nextFocusableActor;
326 // We will try to move the focus to the actor. Emit a signal to notify the proposed actor to focus
327 // Signal handler can check the proposed actor and return a different actor if it wishes.
328 if( !mPreFocusChangeSignal.Empty() )
330 mIsWaitingKeyboardFocusChangeCommit = true;
331 committedFocusActor = mPreFocusChangeSignal.Emit(currentFocusActor, nextFocusableActor, direction);
332 mIsWaitingKeyboardFocusChangeCommit = false;
335 if (committedFocusActor && committedFocusActor.IsKeyboardFocusable())
337 // Whether the commited focusable actor is a layout control
338 if(IsLayoutControl(committedFocusActor))
340 // If so, move the focus inside it.
341 Toolkit::Control layoutControl = Toolkit::Control::DownCast(committedFocusActor);
342 return DoMoveFocusWithinLayoutControl(layoutControl, currentFocusActor, direction);
346 // Otherwise, just set focus to the next focusable actor
347 if(committedFocusActor == nextFocusableActor)
349 // If the application hasn't changed our proposed actor, we informs the layout control we will
350 // move the focus to what the control returns. The control might wish to perform some actions
351 // before the focus is actually moved.
352 GetImplementation( control ).OnKeyboardFocusChangeCommitted( committedFocusActor );
355 return SetCurrentFocusActor(committedFocusActor);
366 // No more actor can be focused in the given direction within the same layout control.
371 bool KeyboardFocusManager::DoMoveFocusToNextFocusGroup(bool forward)
373 bool succeed = false;
375 // Get the parent layout control of the current focus group
376 Toolkit::Control parentLayoutControl = GetParentLayoutControl(GetCurrentFocusGroup());
378 while(parentLayoutControl && !succeed)
380 // If the current focus group has a parent layout control, we can probably automatically
381 // move the focus to the next focus group in the forward or backward direction.
382 Toolkit::Control::KeyboardFocus::Direction direction = forward ? Toolkit::Control::KeyboardFocus::RIGHT : Toolkit::Control::KeyboardFocus::LEFT;
383 succeed = DoMoveFocusWithinLayoutControl(parentLayoutControl, GetCurrentFocusActor(), direction);
384 parentLayoutControl = GetParentLayoutControl(parentLayoutControl);
387 if(!mFocusGroupChangedSignal.Empty())
389 // Emit a focus group changed signal. The applicaton can move the focus to a new focus group
390 mFocusGroupChangedSignal.Emit(GetCurrentFocusActor(), forward);
396 void KeyboardFocusManager::DoKeyboardEnter(Actor actor)
400 Toolkit::Control control = Toolkit::Control::DownCast( actor );
403 // Notify the control that enter has been pressed on it.
404 GetImplementation( control ).KeyboardEnter();
407 // Send a notification for the actor.
408 if( !mFocusedActorEnterKeySignal.Empty() )
410 mFocusedActorEnterKeySignal.Emit( actor );
415 void KeyboardFocusManager::ClearFocus()
417 Actor actor = GetCurrentFocusActor();
420 if( mFocusIndicatorActor )
422 actor.Remove( mFocusIndicatorActor );
425 // Send notification for the change of focus actor
426 if( !mFocusChangedSignal.Empty() )
428 mFocusChangedSignal.Emit( actor, Actor() );
431 Toolkit::Control currentlyFocusedControl = Toolkit::Control::DownCast( actor );
432 if( currentlyFocusedControl )
434 currentlyFocusedControl.SetProperty( DevelControl::Property::STATE, DevelControl::NORMAL );
438 mCurrentFocusActor = 0;
439 mIsFocusIndicatorEnabled = false;
442 void KeyboardFocusManager::SetFocusGroupLoop(bool enabled)
444 mFocusGroupLoopEnabled = enabled;
447 bool KeyboardFocusManager::GetFocusGroupLoop() const
449 return mFocusGroupLoopEnabled;
452 void KeyboardFocusManager::SetAsFocusGroup(Actor actor, bool isFocusGroup)
456 // Create/Set focus group property.
457 actor.RegisterProperty( IS_FOCUS_GROUP_PROPERTY_NAME, isFocusGroup, Property::READ_WRITE );
461 bool KeyboardFocusManager::IsFocusGroup(Actor actor) const
463 // Check whether the actor is a focus group
464 bool isFocusGroup = false;
468 Property::Index propertyIsFocusGroup = actor.GetPropertyIndex(IS_FOCUS_GROUP_PROPERTY_NAME);
469 if(propertyIsFocusGroup != Property::INVALID_INDEX)
471 isFocusGroup = actor.GetProperty<bool>(propertyIsFocusGroup);
478 Actor KeyboardFocusManager::GetFocusGroup(Actor actor)
480 // Go through the actor's hierarchy to check which focus group the actor belongs to
481 while (actor && !IsFocusGroup(actor))
483 actor = actor.GetParent();
489 void KeyboardFocusManager::SetFocusIndicatorActor(Actor indicator)
491 if(mFocusIndicatorActor != indicator)
493 Actor currentFocusActor = GetCurrentFocusActor();
494 if(currentFocusActor)
496 // The new focus indicator should be added to the current focused actor immediately
497 if(mFocusIndicatorActor)
499 currentFocusActor.Remove(mFocusIndicatorActor);
504 currentFocusActor.Add(indicator);
508 mFocusIndicatorActor = indicator;
512 Actor KeyboardFocusManager::GetFocusIndicatorActor()
514 if( ! mFocusIndicatorActor )
516 // Create the default if it hasn't been set and one that's shared by all the keyboard focusable actors
517 mFocusIndicatorActor = Toolkit::ImageView::New( FOCUS_BORDER_IMAGE_PATH );
518 mFocusIndicatorActor.SetParentOrigin( ParentOrigin::CENTER );
520 // Apply size constraint to the focus indicator
521 mFocusIndicatorActor.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
524 return mFocusIndicatorActor;
527 void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event)
529 AccessibilityAdaptor accessibilityAdaptor = AccessibilityAdaptor::Get();
530 bool isAccessibilityEnabled = accessibilityAdaptor.IsEnabled();
532 Toolkit::AccessibilityManager accessibilityManager = Toolkit::AccessibilityManager::Get();
534 std::string keyName = event.keyPressedName;
536 bool isFocusStartableKey = false;
538 if(event.state == KeyEvent::Down)
540 if (keyName == "Left")
542 if(!isAccessibilityEnabled)
544 if(!mIsFocusIndicatorEnabled)
546 // Show focus indicator
547 mIsFocusIndicatorEnabled = true;
551 // Move the focus towards left
552 MoveFocus(Toolkit::Control::KeyboardFocus::LEFT);
555 isFocusStartableKey = true;
559 // Move the accessibility focus backward
560 accessibilityManager.MoveFocusBackward();
563 else if (keyName == "Right")
565 if(!isAccessibilityEnabled)
567 if(!mIsFocusIndicatorEnabled)
569 // Show focus indicator
570 mIsFocusIndicatorEnabled = true;
574 // Move the focus towards right
575 MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
580 // Move the accessibility focus forward
581 accessibilityManager.MoveFocusForward();
584 isFocusStartableKey = true;
586 else if (keyName == "Up" && !isAccessibilityEnabled)
588 if(!mIsFocusIndicatorEnabled)
590 // Show focus indicator
591 mIsFocusIndicatorEnabled = true;
595 // Move the focus towards up
596 MoveFocus(Toolkit::Control::KeyboardFocus::UP);
599 isFocusStartableKey = true;
601 else if (keyName == "Down" && !isAccessibilityEnabled)
603 if(!mIsFocusIndicatorEnabled)
605 // Show focus indicator
606 mIsFocusIndicatorEnabled = true;
610 // Move the focus towards down
611 MoveFocus(Toolkit::Control::KeyboardFocus::DOWN);
614 isFocusStartableKey = true;
616 else if (keyName == "Prior" && !isAccessibilityEnabled)
618 if(!mIsFocusIndicatorEnabled)
620 // Show focus indicator
621 mIsFocusIndicatorEnabled = true;
625 // Move the focus towards the previous page
626 MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_UP);
629 isFocusStartableKey = true;
631 else if (keyName == "Next" && !isAccessibilityEnabled)
633 if(!mIsFocusIndicatorEnabled)
635 // Show focus indicator
636 mIsFocusIndicatorEnabled = true;
640 // Move the focus towards the next page
641 MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_DOWN);
644 isFocusStartableKey = true;
646 else if (keyName == "Tab" && !isAccessibilityEnabled)
648 if(!mIsFocusIndicatorEnabled)
650 // Show focus indicator
651 mIsFocusIndicatorEnabled = true;
655 // "Tab" key changes the focus group in the forward direction and
656 // "Shift-Tab" key changes it in the backward direction.
657 DoMoveFocusToNextFocusGroup(!event.IsShiftModifier());
660 isFocusStartableKey = true;
662 else if (keyName == "space" && !isAccessibilityEnabled)
664 if(!mIsFocusIndicatorEnabled)
666 // Show focus indicator
667 mIsFocusIndicatorEnabled = true;
670 isFocusStartableKey = true;
672 else if (keyName == "" && !isAccessibilityEnabled)
674 // Check the fake key event for evas-plugin case
675 if(!mIsFocusIndicatorEnabled)
677 // Show focus indicator
678 mIsFocusIndicatorEnabled = true;
681 isFocusStartableKey = true;
683 else if (keyName == "Backspace" && !isAccessibilityEnabled)
685 // Emit signal to go back to the previous view???
687 else if (keyName == "Escape" && !isAccessibilityEnabled)
691 else if(event.state == KeyEvent::Up)
693 if (keyName == "Return")
695 if(!mIsFocusIndicatorEnabled && !isAccessibilityEnabled)
697 // Show focus indicator
698 mIsFocusIndicatorEnabled = true;
702 // The focused actor has enter pressed on it
704 if( !isAccessibilityEnabled )
706 actor = GetCurrentFocusActor();
710 actor = accessibilityManager.GetCurrentFocusActor();
715 DoKeyboardEnter( actor );
719 isFocusStartableKey = true;
723 if(isFocusStartableKey && mIsFocusIndicatorEnabled && !isAccessibilityEnabled)
725 Actor actor = GetCurrentFocusActor();
728 // Make sure the focused actor is highlighted
729 actor.Add( GetFocusIndicatorActor() );
733 // No actor is focused but keyboard focus is activated by the key press
734 // Let's try to move the initial focus
735 MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
740 void KeyboardFocusManager::OnTouch(const TouchData& touch)
742 // Clear the focus when user touch the screen.
743 // We only do this on a Down event, otherwise the clear action may override a manually focused actor.
744 if( ( touch.GetPointCount() < 1 ) || ( touch.GetState( 0 ) == PointState::DOWN ) )
750 Toolkit::KeyboardFocusManager::PreFocusChangeSignalType& KeyboardFocusManager::PreFocusChangeSignal()
752 return mPreFocusChangeSignal;
755 Toolkit::KeyboardFocusManager::FocusChangedSignalType& KeyboardFocusManager::FocusChangedSignal()
757 return mFocusChangedSignal;
760 Toolkit::KeyboardFocusManager::FocusGroupChangedSignalType& KeyboardFocusManager::FocusGroupChangedSignal()
762 return mFocusGroupChangedSignal;
765 Toolkit::KeyboardFocusManager::FocusedActorEnterKeySignalType& KeyboardFocusManager::FocusedActorEnterKeySignal()
767 return mFocusedActorEnterKeySignal;
770 bool KeyboardFocusManager::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
772 Dali::BaseHandle handle( object );
774 bool connected( true );
775 KeyboardFocusManager* manager = static_cast< KeyboardFocusManager* >( object ); // TypeRegistry guarantees that this is the correct type.
777 if( 0 == strcmp( signalName.c_str(), SIGNAL_PRE_FOCUS_CHANGE ) )
779 manager->PreFocusChangeSignal().Connect( tracker, functor );
781 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUS_CHANGED ) )
783 manager->FocusChangedSignal().Connect( tracker, functor );
785 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUS_GROUP_CHANGED ) )
787 manager->FocusGroupChangedSignal().Connect( tracker, functor );
789 else if( 0 == strcmp( signalName.c_str(), SIGNAL_FOCUSED_ACTOR_ENTER_KEY ) )
791 manager->FocusedActorEnterKeySignal().Connect( tracker, functor );
795 // signalName does not match any signal
802 } // namespace Internal
804 } // namespace Toolkit