Skip to content

Commit eed6130

Browse files
[BugFix] background blur keypress fix (#3927)
* remove custom key handler * Change files * Duplicate change files for beta release
1 parent f5d4aeb commit eed6130

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Bug fix",
5+
"comment": "Fix issue where using the keyboard would throw an error when selecting a background effect",
6+
"packageName": "@azure/communication-react",
7+
"email": "94866715+dmceachernmsft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Bug fix",
5+
"comment": "Fix issue where using the keyboard would throw an error when selecting a background effect",
6+
"packageName": "@azure/communication-react",
7+
"email": "94866715+dmceachernmsft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/VideoEffects/VideoEffectsItem.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,6 @@ export const _VideoEffectsItem = (props: _VideoEffectsItemProps): JSX.Element =>
160160
onClick={disabled ? undefined : () => props.onSelect?.(props.itemKey)}
161161
componentRef={componentRef}
162162
autoFocus={props.focusOnMount}
163-
onKeyDown={
164-
disabled
165-
? undefined
166-
: (e) => {
167-
if (e.key === 'Enter' || e.key === ' ') {
168-
props.onSelect?.(props.itemKey);
169-
}
170-
}
171-
}
172163
>
173164
<Stack horizontalAlign={'center'} tokens={{ childrenGap: '0.15rem' }}>
174165
{props.iconProps && (

0 commit comments

Comments
 (0)