Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
540ff244
Unverified
Commit
540ff244
authored
Jun 28, 2021
by
Justin McCandless
Committed by
GitHub
Jun 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shift + home/end on Mac (#85264)
parent
98a15d03
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
63 deletions
+142
-63
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+1
-1
default_text_editing_shortcuts.dart
...utter/lib/src/widgets/default_text_editing_shortcuts.dart
+2
-2
editable_text_test.dart
packages/flutter/test/widgets/editable_text_test.dart
+139
-60
No files found.
packages/flutter/lib/src/rendering/editable.dart
View file @
540ff244
...
...
@@ -997,7 +997,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
//
// See also:
//
// * _ex
pa
ndSelectionToEnd
// * _ex
te
ndSelectionToEnd
void
_extendSelectionToStart
(
SelectionChangedCause
cause
)
{
if
(
selection
!.
extentOffset
==
0
)
{
return
;
...
...
packages/flutter/lib/src/widgets/default_text_editing_shortcuts.dart
View file @
540ff244
...
...
@@ -379,6 +379,8 @@ class DefaultTextEditingShortcuts extends Shortcuts {
SingleActivator
(
LogicalKeyboardKey
.
arrowLeft
,
shift:
true
):
ExtendSelectionLeftTextIntent
(),
SingleActivator
(
LogicalKeyboardKey
.
arrowRight
,
shift:
true
):
ExtendSelectionRightTextIntent
(),
SingleActivator
(
LogicalKeyboardKey
.
arrowUp
,
shift:
true
):
ExtendSelectionUpTextIntent
(),
SingleActivator
(
LogicalKeyboardKey
.
end
,
shift:
true
):
ExpandSelectionToEndTextIntent
(),
SingleActivator
(
LogicalKeyboardKey
.
home
,
shift:
true
):
ExpandSelectionToStartTextIntent
(),
SingleActivator
(
LogicalKeyboardKey
.
keyA
,
meta:
true
):
SelectAllTextIntent
(),
// The following key combinations have no effect on text editing on this
// platform:
...
...
@@ -389,8 +391,6 @@ class DefaultTextEditingShortcuts extends Shortcuts {
// * Control + shift + arrow right
// * End
// * Home
// * Shift + end
// * Shift + home
// * Control + delete
// * Control + backspace
};
...
...
packages/flutter/test/widgets/editable_text_test.dart
View file @
540ff244
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment