mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Reply to a message by double clicking on its row
This commit is contained in:
committed by
Josh Perez
parent
d4124abb01
commit
288293795f
@@ -1745,6 +1745,11 @@ export class Message extends React.PureComponent<Props, State> {
|
||||
: null
|
||||
)}
|
||||
dir={isRTL ? 'rtl' : undefined}
|
||||
onDoubleClick={(event: React.MouseEvent) => {
|
||||
// Prevent double-click interefering with interactions _inside_
|
||||
// the bubble.
|
||||
event.stopPropagation();
|
||||
}}
|
||||
>
|
||||
<MessageBodyReadMore
|
||||
bodyRanges={bodyRanges}
|
||||
@@ -2505,6 +2510,10 @@ export class Message extends React.PureComponent<Props, State> {
|
||||
role="row"
|
||||
onKeyDown={onKeyDown}
|
||||
onClick={this.handleClick}
|
||||
onDoubleClick={ev => {
|
||||
// Prevent double click from triggering the replyToMessage action
|
||||
ev.stopPropagation();
|
||||
}}
|
||||
tabIndex={-1}
|
||||
>
|
||||
{this.renderAuthor()}
|
||||
|
||||
Reference in New Issue
Block a user