| Index: dart/site/try/src/interaction_manager.dart
|
| diff --git a/dart/site/try/src/interaction_manager.dart b/dart/site/try/src/interaction_manager.dart
|
| index 2a92fe16d78625cdef33361f1c4bbd935a0e3e6d..5b309a96cbcbe2fff1d870ac2d033120d9539b94 100644
|
| --- a/dart/site/try/src/interaction_manager.dart
|
| +++ b/dart/site/try/src/interaction_manager.dart
|
| @@ -55,7 +55,8 @@ import 'compilation_unit.dart' show
|
| CompilationUnit;
|
|
|
| import 'selection.dart' show
|
| - TrySelection;
|
| + TrySelection,
|
| + isCollapsed;
|
|
|
| import 'editor.dart' as editor;
|
|
|
| @@ -229,7 +230,7 @@ class InitialState extends InteractionState {
|
| case KeyCode.ENTER: {
|
| event.preventDefault();
|
| Selection selection = window.getSelection();
|
| - if (selection.isCollapsed && selection.anchorNode is Text) {
|
| + if (isCollapsed(selection) && selection.anchorNode is Text) {
|
| Text text = selection.anchorNode;
|
| int offset = selection.anchorOffset;
|
| text.insertData(offset, '\n');
|
|
|