Unverified Commit 540ff244 authored by Justin McCandless's avatar Justin McCandless Committed by GitHub

Shift + home/end on Mac (#85264)

parent 98a15d03
...@@ -997,7 +997,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin, ...@@ -997,7 +997,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
// //
// See also: // See also:
// //
// * _expandSelectionToEnd // * _extendSelectionToEnd
void _extendSelectionToStart(SelectionChangedCause cause) { void _extendSelectionToStart(SelectionChangedCause cause) {
if (selection!.extentOffset == 0) { if (selection!.extentOffset == 0) {
return; return;
......
...@@ -379,6 +379,8 @@ class DefaultTextEditingShortcuts extends Shortcuts { ...@@ -379,6 +379,8 @@ class DefaultTextEditingShortcuts extends Shortcuts {
SingleActivator(LogicalKeyboardKey.arrowLeft, shift: true): ExtendSelectionLeftTextIntent(), SingleActivator(LogicalKeyboardKey.arrowLeft, shift: true): ExtendSelectionLeftTextIntent(),
SingleActivator(LogicalKeyboardKey.arrowRight, shift: true): ExtendSelectionRightTextIntent(), SingleActivator(LogicalKeyboardKey.arrowRight, shift: true): ExtendSelectionRightTextIntent(),
SingleActivator(LogicalKeyboardKey.arrowUp, shift: true): ExtendSelectionUpTextIntent(), SingleActivator(LogicalKeyboardKey.arrowUp, shift: true): ExtendSelectionUpTextIntent(),
SingleActivator(LogicalKeyboardKey.end, shift: true): ExpandSelectionToEndTextIntent(),
SingleActivator(LogicalKeyboardKey.home, shift: true): ExpandSelectionToStartTextIntent(),
SingleActivator(LogicalKeyboardKey.keyA, meta: true): SelectAllTextIntent(), SingleActivator(LogicalKeyboardKey.keyA, meta: true): SelectAllTextIntent(),
// The following key combinations have no effect on text editing on this // The following key combinations have no effect on text editing on this
// platform: // platform:
...@@ -389,8 +391,6 @@ class DefaultTextEditingShortcuts extends Shortcuts { ...@@ -389,8 +391,6 @@ class DefaultTextEditingShortcuts extends Shortcuts {
// * Control + shift + arrow right // * Control + shift + arrow right
// * End // * End
// * Home // * Home
// * Shift + end
// * Shift + home
// * Control + delete // * Control + delete
// * Control + backspace // * Control + backspace
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment