[NUI] Add forward and backward direction type (#3932)
authorJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Tue, 22 Feb 2022 04:43:01 +0000 (13:43 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 22 Feb 2022 06:15:10 +0000 (15:15 +0900)
commite9a6e9fb39c002e8404b6501a03dcd7cf8ee4a6a
tree2998338d0f16da66336aa4530f808b777b4ae3ce
parent7f1459d49605aac15e3fb8d240ba1088b9f85751
[NUI] Add forward and backward direction type (#3932)

Now, You can get Forward type by pressing Tab key and Backward type by pressing Shift-Tab key.

public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
{
 if (direction == View.FocusDirection.Forward)
 {
  // Tab
 }
 else if (direction == View.FocusDirection.Backward)
 {
  // Shift-Tab
 }
}
src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs