mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix keyboard handling in ReactionPicker/Viewer and their child views
This commit is contained in:
committed by
Fedor Indutnyy
parent
0bf77fadd3
commit
03b750d072
@@ -1,7 +1,12 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
||||
import type {
|
||||
CSSProperties,
|
||||
KeyboardEventHandler,
|
||||
MouseEventHandler,
|
||||
ReactNode,
|
||||
} from 'react';
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
@@ -48,6 +53,8 @@ type PropsType = {
|
||||
} & (
|
||||
| {
|
||||
onClick: MouseEventHandler<HTMLButtonElement>;
|
||||
// TODO: DESKTOP-4121
|
||||
onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
|
||||
}
|
||||
| {
|
||||
type: 'submit';
|
||||
|
||||
Reference in New Issue
Block a user