Commit 1433d80c113666291f5b8bc30d79eb41bf4fd210
1 parent
924ffe8f
Remove UnhandledKeyEventSignal from examples.
UnhandledKeyEventSignal is removed from KeyInputFocusManager. Stage::KeyEventSignal can work as UnhandledKeyEventSignal. Change-Id: I264c4fdd7aafcc668ba64bf8fe5abafed5103430 Signed-off-by: minho.sun <minho.sun@samsung.com>
Showing
2 changed files
with
2 additions
and
11 deletions
examples/popup/popup-example.cpp
| ... | ... | @@ -20,7 +20,6 @@ |
| 20 | 20 | #include <dali-toolkit/dali-toolkit.h> |
| 21 | 21 | #include <dali-toolkit/devel-api/controls/buttons/button-devel.h> |
| 22 | 22 | #include <dali-toolkit/devel-api/controls/popup/popup.h> |
| 23 | -#include <dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h> | |
| 24 | 23 | |
| 25 | 24 | using namespace Dali; |
| 26 | 25 | |
| ... | ... | @@ -117,11 +116,7 @@ public: |
| 117 | 116 | Stage stage = Stage::GetCurrent(); |
| 118 | 117 | |
| 119 | 118 | // Respond to key events if not handled |
| 120 | - Toolkit::KeyInputFocusManager keyInputFocusManager = Toolkit::KeyInputFocusManager::Get(); | |
| 121 | - if( keyInputFocusManager ) | |
| 122 | - { | |
| 123 | - keyInputFocusManager.UnhandledKeyEventSignal().Connect( this, &PopupExample::OnKeyEvent ); | |
| 124 | - } | |
| 119 | + stage.KeyEventSignal().Connect( this, &PopupExample::OnKeyEvent ); | |
| 125 | 120 | |
| 126 | 121 | // Creates a default view with a default tool bar. |
| 127 | 122 | // The view is added to the stage. | ... | ... |
examples/size-negotiation/size-negotiation-example.cpp
| ... | ... | @@ -114,11 +114,7 @@ public: |
| 114 | 114 | Stage stage = Stage::GetCurrent(); |
| 115 | 115 | |
| 116 | 116 | // Respond to key events if not handled |
| 117 | - Toolkit::KeyInputFocusManager keyInputFocusManager = Toolkit::KeyInputFocusManager::Get(); | |
| 118 | - if( keyInputFocusManager ) | |
| 119 | - { | |
| 120 | - keyInputFocusManager.UnhandledKeyEventSignal().Connect(this, &SizeNegotiationController::OnKeyEvent); | |
| 121 | - } | |
| 117 | + stage.KeyEventSignal().Connect(this, &SizeNegotiationController::OnKeyEvent); | |
| 122 | 118 | |
| 123 | 119 | // Creates a default view with a default tool bar. |
| 124 | 120 | // The view is added to the stage. | ... | ... |