Skip to content

Commit 7e8c5db

Browse files
committed
remove keyboard input
Signed-off-by: Timo K <[email protected]>
1 parent 1d8d079 commit 7e8c5db

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/toasts/IncomingCallToast.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,12 @@ export function IncomingCallToast({ notificationEvent }: Props): JSX.Element {
244244
return (
245245
<TooltipProvider>
246246
<>
247-
<div
247+
<input
248248
className="mx_IncomingCallToast_content"
249249
onClick={(e) => {
250250
onJoinClick(e);
251251
}}
252-
onKeyDown={(e) => {
253-
if (e.key === "Enter") {
254-
onJoinClick(e);
255-
}
256-
}}
257-
tabIndex={0}
258-
role="button"
252+
type="button"
259253
>
260254
<div className="mx_IncomingCallToast_message">
261255
<VideoCallIcon width="20px" height="20px" style={{ position: "relative", top: "4px" }} />{" "}
@@ -291,7 +285,7 @@ export function IncomingCallToast({ notificationEvent }: Props): JSX.Element {
291285
disabledTooltip={otherCallIsOngoing ? "Ongoing call" : undefined}
292286
/>
293287
</div>
294-
</div>
288+
</input>
295289
<AccessibleButton
296290
className="mx_IncomingCallToast_closeButton"
297291
onClick={onCloseClick}

0 commit comments

Comments
 (0)