diff options
| author | bob <bcz@cs.brown.edu> | 2020-02-28 14:04:20 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-02-28 14:04:20 -0500 |
| commit | fd0fc1a7f3e1ae41503bc0b5d2f0eda0371f9a4a (patch) | |
| tree | 13ed1fec0d5e6b30c74e637a061efc6322bd704e /src/client/views/collections | |
| parent | 5c139f0001cd10e5699a716c1e64d2c2c0b2d800 (diff) | |
added ctrl-enter & alt-enter to create new relatively positioned text boxes.
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index b8e9acf85..d4fa22a7e 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -104,6 +104,7 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque } }); } else if (!e.ctrlKey) { + FormattedTextBox.SelectOnLoadChar = FormattedTextBox.DefaultLayout ? e.key : ""; this.props.addLiveTextDocument( Docs.Create.TextDocument("", { _width: NumCast((FormattedTextBox.DefaultLayout as Doc)?._width) || 200, _height: 100, layout: FormattedTextBox.DefaultLayout, x: x, y: y, _autoHeight: true, title: "-typed text-" })); } else if (e.keyCode > 48 && e.keyCode <= 57) { |
