@fluentui-react-native/focus-zone 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +10 -2
- package/macos/RCTFocusZone.m +11 -7
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 27 Jul 2024 06:53:01 GMT",
|
|
6
|
+
"version": "0.19.2",
|
|
7
|
+
"tag": "@fluentui-react-native/focus-zone_v0.19.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "nakambo@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
13
|
+
"commit": "ee36c6f2003fa16ebfca7394ab86ea754d4c37ee",
|
|
14
|
+
"comment": "[Mac] [Focus Zone] Restore broken direction = none functionality"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 26 Jul 2024 16:00:07 GMT",
|
|
6
21
|
"version": "0.19.1",
|
|
7
22
|
"tag": "@fluentui-react-native/focus-zone_v0.19.1",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/focus-zone
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 27 Jul 2024 06:53:01 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.19.2
|
|
8
|
+
|
|
9
|
+
Sat, 27 Jul 2024 06:53:01 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- [Mac] [Focus Zone] Restore broken direction = none functionality (nakambo@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.19.1
|
|
8
16
|
|
|
9
|
-
Fri, 26 Jul 2024
|
|
17
|
+
Fri, 26 Jul 2024 16:00:07 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/macos/RCTFocusZone.m
CHANGED
|
@@ -538,10 +538,10 @@ static BOOL ShouldSkipFocusZone(NSView *view)
|
|
|
538
538
|
|
|
539
539
|
BOOL forward = action != FocusZoneActionShiftTab;
|
|
540
540
|
NSView *firstResponder = GetFirstResponder([self window]);
|
|
541
|
-
NSView *nextViewToFocus =
|
|
541
|
+
NSView *nextViewToFocus = forward ? [firstResponder nextValidKeyView] : [firstResponder previousValidKeyView];
|
|
542
542
|
|
|
543
543
|
if (nextViewToFocus == self)
|
|
544
|
-
nextViewToFocus =
|
|
544
|
+
nextViewToFocus = forward ? [nextViewToFocus nextValidKeyView] : [nextViewToFocus previousValidKeyView];;
|
|
545
545
|
|
|
546
546
|
if ([@"Normal" isEqual:tabKeyNavigation] || [nextViewToFocus isDescendantOf:self])
|
|
547
547
|
return nextViewToFocus;
|
|
@@ -573,11 +573,7 @@ static BOOL ShouldSkipFocusZone(NSView *view)
|
|
|
573
573
|
|
|
574
574
|
BOOL passthrough = NO;
|
|
575
575
|
NSView *viewToFocus = nil;
|
|
576
|
-
if ([self disabled] || action == FocusZoneActionNone
|
|
577
|
-
|| (focusZoneDirection == FocusZoneDirectionVertical
|
|
578
|
-
&& (action == FocusZoneActionRightArrow || action == FocusZoneActionLeftArrow))
|
|
579
|
-
|| (focusZoneDirection == FocusZoneDirectionHorizontal
|
|
580
|
-
&& (action == FocusZoneActionUpArrow || action == FocusZoneActionDownArrow)))
|
|
576
|
+
if ([self disabled] || action == FocusZoneActionNone)
|
|
581
577
|
{
|
|
582
578
|
passthrough = YES;
|
|
583
579
|
}
|
|
@@ -585,6 +581,14 @@ static BOOL ShouldSkipFocusZone(NSView *view)
|
|
|
585
581
|
{
|
|
586
582
|
viewToFocus = [self nextViewToFocusForTab:action];
|
|
587
583
|
}
|
|
584
|
+
else if ((focusZoneDirection == FocusZoneDirectionVertical
|
|
585
|
+
&& (action == FocusZoneActionRightArrow || action == FocusZoneActionLeftArrow))
|
|
586
|
+
|| (focusZoneDirection == FocusZoneDirectionHorizontal
|
|
587
|
+
&& (action == FocusZoneActionUpArrow || action == FocusZoneActionDownArrow))
|
|
588
|
+
|| (focusZoneDirection == FocusZoneDirectionNone))
|
|
589
|
+
{
|
|
590
|
+
passthrough = YES;
|
|
591
|
+
}
|
|
588
592
|
else
|
|
589
593
|
{
|
|
590
594
|
viewToFocus = [self nextViewToFocusWithFallback:action considerCircular:[@"NavigateWrap" isEqual:navigateAtEnd]];
|
package/package.json
CHANGED