@@ -207,6 +207,10 @@ class DefaultTextEditingShortcuts extends Shortcuts {
207207 const SingleActivator (LogicalKeyboardKey .keyA, control: true ): const SelectAllTextIntent (SelectionChangedCause .keyboard),
208208 const SingleActivator (LogicalKeyboardKey .keyZ, control: true ): const UndoTextIntent (SelectionChangedCause .keyboard),
209209 const SingleActivator (LogicalKeyboardKey .keyZ, shift: true , control: true ): const RedoTextIntent (SelectionChangedCause .keyboard),
210+ // These keys should go to the IME when a field is focused, not to other
211+ // Shortcuts.
212+ const SingleActivator (LogicalKeyboardKey .space): const DoNothingAndStopPropagationTextIntent (),
213+ const SingleActivator (LogicalKeyboardKey .enter): const DoNothingAndStopPropagationTextIntent (),
210214 };
211215
212216 // The following key combinations have no effect on text editing on this
@@ -328,6 +332,10 @@ class DefaultTextEditingShortcuts extends Shortcuts {
328332 const SingleActivator (LogicalKeyboardKey .keyA, meta: true ): const SelectAllTextIntent (SelectionChangedCause .keyboard),
329333 const SingleActivator (LogicalKeyboardKey .keyZ, meta: true ): const UndoTextIntent (SelectionChangedCause .keyboard),
330334 const SingleActivator (LogicalKeyboardKey .keyZ, shift: true , meta: true ): const RedoTextIntent (SelectionChangedCause .keyboard),
335+ // These keys should go to the IME when a field is focused, not to other
336+ // Shortcuts.
337+ const SingleActivator (LogicalKeyboardKey .space): const DoNothingAndStopPropagationTextIntent (),
338+ const SingleActivator (LogicalKeyboardKey .enter): const DoNothingAndStopPropagationTextIntent (),
331339 // The following key combinations have no effect on text editing on this
332340 // platform:
333341 // * End
@@ -410,6 +418,7 @@ class DefaultTextEditingShortcuts extends Shortcuts {
410418 const SingleActivator (LogicalKeyboardKey .end, control: true ): const DoNothingAndStopPropagationTextIntent (),
411419 const SingleActivator (LogicalKeyboardKey .home, control: true ): const DoNothingAndStopPropagationTextIntent (),
412420 const SingleActivator (LogicalKeyboardKey .space): const DoNothingAndStopPropagationTextIntent (),
421+ const SingleActivator (LogicalKeyboardKey .enter): const DoNothingAndStopPropagationTextIntent (),
413422 const SingleActivator (LogicalKeyboardKey .keyX, control: true ): const DoNothingAndStopPropagationTextIntent (),
414423 const SingleActivator (LogicalKeyboardKey .keyX, meta: true ): const DoNothingAndStopPropagationTextIntent (),
415424 const SingleActivator (LogicalKeyboardKey .keyC, control: true ): const DoNothingAndStopPropagationTextIntent (),
0 commit comments