@ni/nimble-components 30.3.0 → 30.3.1

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.
@@ -9411,12 +9411,15 @@ let e=""!==this.filter?this.openActiveIndex??this.selectedIndex:this.selectedInd
9411
9411
  t.length>0&&!t.find((t=>t===this.options[e]))?e=this.options.indexOf(t[0]):0===t.length&&(e=-1),this.setActiveOption(e)}return this.filterMode!==qg.none&&this.emitFilterInputEvent(),t.inputType.includes("deleteContent")||!this.filter.length||t.stopPropagation(),!0}focusoutHandler(t){if(super.focusoutHandler(t),!this.open)return!0
9412
9412
  this.open=!1
9413
9413
  const e=t.relatedTarget
9414
- return!this.isSameNode(e)||(this.focus(),!0)}keydownHandler(t){const e=this.selectedIndex
9415
- super.keydownHandler(t)
9416
- const n=t.key
9414
+ return!this.isSameNode(e)||(this.focus(),!0)}keydownHandler(t){const e=this.selectedIndex,n=t.key
9417
9415
  if(t.ctrlKey||t.shiftKey)return!0
9416
+ n!==Ua&&n!==Wa&&super.keydownHandler(t)
9418
9417
  let i=this.openActiveIndex??this.selectedIndex,s=!1
9419
- switch(n){case Qa:if(this.open&&this.filterMode!==qg.none)break
9418
+ switch(n){case Ua:{const e=this.options[this.selectedIndex]
9419
+ this.open&&fO(e)&&!yO(e)?this.openActiveIndex===this.selectedIndex?this.selectFirstOption():this.selectNextOption():super.keydownHandler(t),i=this.openActiveIndex??this.selectedIndex
9420
+ break}case Wa:{const e=this.options[this.selectedIndex]
9421
+ this.open&&fO(e)&&!yO(e)?this.openActiveIndex===this.selectedIndex?this.selectLastOption():this.selectPreviousOption():super.keydownHandler(t),i=this.openActiveIndex??this.selectedIndex
9422
+ break}case Qa:if(this.open&&this.filterMode!==qg.none)break
9420
9423
  t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open),this.open||this.focus()
9421
9424
  break
9422
9425
  case Ya:case Ga:t.preventDefault()