DescriptionMacViews: Correct behavior of move and select commands when selection direction changes.
Currently the following commands do not behave similarly to Cocoa textfields
when the selection direction changes-
-moveWordForwardAndModifySelection
-moveWordBackwardAndModifySelection
-moveToBeginningOfLineAndModifySelection
-moveToEndOfLineAndModifySelection
-moveToBeginningOfParagraphAndModifySelection
-moveToEndOfParagraphAndModifySelection
-moveToEndOfDocumentAndModifySelection
-moveToBeginningOfDocumentAndModifySelection
-moveParagraphForwardAndModifySelection
-moveParagraphBackwardAndModifySelection
-moveWordRightAndModifySelection
-moveWordLeftAndModifySelection
-moveToLeftEndOfLineAndModifySelection
-moveToRightEndOfLineAndModifySelection
This CL adds the following four commands ids to views::Textfield to account for
the different kinds of behavior textfields on Cocoa demonstrate-
-IDS_MOVE_TO_BEGINNING_OF_LINE_AND_EXTEND_SELECTION"
-IDS_MOVE_TOWARDS_BEGINNING_OF_LINE_AND_MODIFY_SELECTION
-IDS_MOVE_TO_END_OF_LINE_AND_EXTEND_SELECTION
-IDS_MOVE_TOWARDS_END_OF_LINE_AND_MODIFY_SELECTION
RenderText::MoveCursor() is augmented with an enum
gfx::SelectionReversedBehavior which accounts for the behavior to follow in case
the selection direction is reversed.
This CL should have no behavior change for non-Mac platforms.
BUG=613438, 586985
Patch Set 1 : #
Total comments: 15
Patch Set 2 : Address review comments. #
Total comments: 4
Messages
Total messages: 14 (8 generated)
|