@@ -207,6 +207,10 @@ class DefaultTextEditingShortcuts extends Shortcuts {
207
207
const SingleActivator (LogicalKeyboardKey .keyA, control: true ): const SelectAllTextIntent (SelectionChangedCause .keyboard),
208
208
const SingleActivator (LogicalKeyboardKey .keyZ, control: true ): const UndoTextIntent (SelectionChangedCause .keyboard),
209
209
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 (),
210
214
};
211
215
212
216
// The following key combinations have no effect on text editing on this
@@ -328,6 +332,10 @@ class DefaultTextEditingShortcuts extends Shortcuts {
328
332
const SingleActivator (LogicalKeyboardKey .keyA, meta: true ): const SelectAllTextIntent (SelectionChangedCause .keyboard),
329
333
const SingleActivator (LogicalKeyboardKey .keyZ, meta: true ): const UndoTextIntent (SelectionChangedCause .keyboard),
330
334
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 (),
331
339
// The following key combinations have no effect on text editing on this
332
340
// platform:
333
341
// * End
@@ -410,6 +418,7 @@ class DefaultTextEditingShortcuts extends Shortcuts {
410
418
const SingleActivator (LogicalKeyboardKey .end, control: true ): const DoNothingAndStopPropagationTextIntent (),
411
419
const SingleActivator (LogicalKeyboardKey .home, control: true ): const DoNothingAndStopPropagationTextIntent (),
412
420
const SingleActivator (LogicalKeyboardKey .space): const DoNothingAndStopPropagationTextIntent (),
421
+ const SingleActivator (LogicalKeyboardKey .enter): const DoNothingAndStopPropagationTextIntent (),
413
422
const SingleActivator (LogicalKeyboardKey .keyX, control: true ): const DoNothingAndStopPropagationTextIntent (),
414
423
const SingleActivator (LogicalKeyboardKey .keyX, meta: true ): const DoNothingAndStopPropagationTextIntent (),
415
424
const SingleActivator (LogicalKeyboardKey .keyC, control: true ): const DoNothingAndStopPropagationTextIntent (),
0 commit comments