forked from antonshusharin/DevTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff_tab_fix.patch
More file actions
46 lines (44 loc) · 1.76 KB
/
diff_tab_fix.patch
File metadata and controls
46 lines (44 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff --git a/Assembly-CSharp/Accessibility/AccessibleListOfItems.cs b/Assembly-CSharp/Accessibility/AccessibleListOfItems.cs
index b24bf4e..2e690f3 100644
--- a/Assembly-CSharp/Accessibility/AccessibleListOfItems.cs
+++ b/Assembly-CSharp/Accessibility/AccessibleListOfItems.cs
@@ -31,22 +31,16 @@ internal void SetGoBackAction(Action a) {
m_goBackAction=a;
}
- internal bool HandleAccessibleInput()
- {
-
+ internal bool HandleAccessibleInput() {
if(AccessibleKey.BACK.IsPressed()&&m_goBackAction!=null) {
-// AccessibilityMgr.Output(null,"Go back");
- m_goBackAction();
+ m_goBackAction();
}
- else if (AccessibleKey.READ_NEXT_VALID_ITEM.IsPressed())
- {
+ else if (AccessibleKey.READ_NEXT_VALID_ITEM.IsPressed()) {
if(TabAction!=null) TabAction();
}
- else if (AccessibleKey.READ_PREV_VALID_ITEM.IsPressed())
- {
+ else if (AccessibleKey.READ_PREV_VALID_ITEM.IsPressed()) {
if(ShiftTabAction!=null) ShiftTabAction();
}
-
if (m_items.Count == 0 && m_noItemsTextOverride != null)
{
// TODO: Refactor this list to do this properly
@@ -80,7 +74,13 @@ internal void SetGoBackAction(Action a) {
{
return true;
}
-
+ else if (AccessibleKey.READ_NEXT_VALID_ITEM.IsPressed()) {
+ if(TabAction==null) return ReadNextItem(1, true);
+ }
+ else if (AccessibleKey.READ_PREV_VALID_ITEM.IsPressed())
+ {
+ if(ShiftTabAction==null) return ReadNextItem(-1, true);
+ }
return false;
}