From 2bc65e1daa1c9ee882f6034e656620fe6a172f03 Mon Sep 17 00:00:00 2001
From: JoogabYun <40262755+JoogabYun@users.noreply.github.com>
Date: Tue, 22 Feb 2022 13:43:01 +0900
Subject: [PATCH] [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 | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs
index bbc1e6e..eb15127 100755
--- a/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs
+++ b/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs
@@ -140,7 +140,17 @@ namespace Tizen.NUI.BaseComponents
/// Move keyboard focus towards the next page direction.
///
/// 3
- PageDown
+ PageDown,
+ ///
+ /// Move keyboard focus towards the forward direction.
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Forward,
+ ///
+ /// Move keyboard focus towards the backward direction.
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Backward,
}
internal enum PropertyRange
--
2.7.4