diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-04-27 22:00:21 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-04-27 22:00:21 -0400 |
commit | 07c95bfdf0d72cc5ee6cd6612632ac91e47274d1 (patch) | |
tree | 5d20bd41f45082e8114beebda4a96c640577065d /src/client/views/nodes/FormattedTextBox.tsx | |
parent | 89341b26ad1418e78402d9b45b530365ddee0af7 (diff) |
fixed dragdecorations titling. fixed some event issues with dragging and textbox's context menu on mac
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 02d98de6b..d8cd28b6c 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -170,12 +170,10 @@ export class FormattedTextBox extends React.Component<(FieldViewProps & Formatte @action onPointerDown = (e: React.PointerEvent): void => { if (e.button === 1 && this.props.isSelected() && !e.altKey && !e.ctrlKey && !e.metaKey) { - console.log("first"); e.stopPropagation(); } - if (e.button === 2) { + if (e.button === 2 || (e.button === 0 && e.ctrlKey)) { this._gotDown = true; - console.log("second"); e.preventDefault(); } } |