X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffocus-manager%2Fkeyboard-focus-manager-impl.cpp;h=8e8a4daa7e479e74da8a8b8aba71e4b432ab9fbc;hp=0695af987f91df436ac72f270c3e9772cf682654;hb=a2c786a79c7565ff506ac0a546910fbeb8371ec8;hpb=fca202af829a0657805e44461f08f284cdbf0bbb 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 0695af9..8e8a4da 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,13 +25,11 @@ #include #include #include -#include #include -#include +#include #include #include #include -#include #include #include #include @@ -41,7 +39,7 @@ #include #include #include -#include +#include #include #include #include @@ -753,7 +751,7 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event) Toolkit::AccessibilityManager accessibilityManager = Toolkit::AccessibilityManager::Get(); - std::string keyName = event.keyPressedName; + std::string keyName = event.GetKeyName(); if( mIsFocusIndicatorShown == UNKNOWN ) { @@ -762,7 +760,7 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event) bool isFocusStartableKey = false; - if(event.state == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if (keyName == "Left") { @@ -915,7 +913,7 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event) { } } - else if(event.state == KeyEvent::Up) + else if(event.GetState() == KeyEvent::UP) { if (keyName == "Return") { @@ -967,7 +965,7 @@ void KeyboardFocusManager::OnKeyEvent(const KeyEvent& event) } } -void KeyboardFocusManager::OnTouch(const TouchData& touch) +void KeyboardFocusManager::OnTouch(const TouchEvent& touch) { // if mIsFocusIndicatorShown is UNKNOWN, it means Configuration is not loaded. // Try to load configuration.