@fluentui-react-native/focus-zone 0.11.2 → 0.11.3

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 CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-react-native/focus-zone",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 10 Nov 2022 02:05:14 GMT",
5
+ "date": "Fri, 11 Nov 2022 01:02:17 GMT",
6
+ "tag": "@fluentui-react-native/focus-zone_v0.11.3",
7
+ "version": "0.11.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "sanajmi@microsoft.com",
12
+ "package": "@fluentui-react-native/focus-zone",
13
+ "commit": "634f6d3d043439166ba9fcd904e831ef85c73df0",
14
+ "comment": "FocusZone (macOS): Ensure we passthrough unhandled keyboard events"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 10 Nov 2022 02:05:55 GMT",
6
21
  "tag": "@fluentui-react-native/focus-zone_v0.11.2",
7
22
  "version": "0.11.2",
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 Thu, 10 Nov 2022 02:05:14 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 11 Nov 2022 01:02:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.11.3
8
+
9
+ Fri, 11 Nov 2022 01:02:17 GMT
10
+
11
+ ### Patches
12
+
13
+ - FocusZone (macOS): Ensure we passthrough unhandled keyboard events (sanajmi@microsoft.com)
14
+
7
15
  ## 0.11.2
8
16
 
9
- Thu, 10 Nov 2022 02:05:14 GMT
17
+ Thu, 10 Nov 2022 02:05:55 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -465,14 +465,15 @@ static BOOL ShouldSkipFocusZone(NSView *view)
465
465
  viewToFocus = [self nextViewToFocusWithFallback:action];
466
466
  }
467
467
 
468
- if (!passthrough && viewToFocus != nil)
468
+ if (viewToFocus != nil)
469
469
  {
470
470
  [[self window] makeFirstResponder:viewToFocus];
471
471
  [viewToFocus scrollRectToVisible:[viewToFocus bounds]];
472
472
  }
473
- // Call super only if there are views to focus
474
- else if (viewToFocus != nil)
473
+ else if (passthrough)
475
474
  {
475
+ // Only call super if we explicitly want to passthrough the event
476
+ // I.E: FocusZone don't handle this specific key
476
477
  [super keyDown:event];
477
478
  }
478
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-zone",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "A cross-platform FocusZone component using the Fluent Design System",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",