[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>
Wed, 23 Feb 2022 01:14:10 +0000 (10:14 +0900)
commit2bc65e1daa1c9ee882f6034e656620fe6a172f03
treec878e2c3f1285056bb743d42f7db3c9f2a9d1f98
parent86ab24c97fad65d6efa6ff9ec7f6134349897d88
[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