diff --git a/dom/base/nsGlobalWindowCommands.cpp b/dom/base/nsGlobalWindowCommands.cpp index d313bb428b01..68de88c8a72e 100644 --- a/dom/base/nsGlobalWindowCommands.cpp +++ b/dom/base/nsGlobalWindowCommands.cpp @@ -80,11 +80,6 @@ constexpr const char* sEndLineString = "cmd_endLine"; constexpr const char* sSelectBeginLineString = "cmd_selectBeginLine"; constexpr const char* sSelectEndLineString = "cmd_selectEndLine"; -constexpr const char* sBeginParagraphString = "cmd_beginParagraph"; -constexpr const char* sEndParagraphString = "cmd_endParagraph"; -constexpr const char* sSelectBeginParagraphString = "cmd_selectBeginParagraph"; -constexpr const char* sSelectEndParagraphString = "cmd_selectEndParagraph"; - constexpr const char* sSelectLinePreviousString = "cmd_selectLinePrevious"; constexpr const char* sSelectLineNextString = "cmd_selectLineNext"; @@ -308,11 +303,7 @@ static constexpr struct BrowseCommand { {Command::BeginLine, Command::EndLine, KeyboardScrollAction::eScrollComplete, &nsISelectionController::CompleteScroll, - &nsISelectionController::IntraLineMove}, - {Command::BeginParagraph, Command::EndParagraph, - KeyboardScrollAction::eScrollComplete, - &nsISelectionController::CompleteScroll, - &nsISelectionController::IntraParagraphMove}}; + &nsISelectionController::IntraLineMove}}; nsresult nsSelectMoveScrollCommand::DoCommand(const char* aCommandName, nsISupports* aCommandContext) { @@ -429,21 +420,18 @@ nsresult nsPhysicalSelectMoveScrollCommand::DoCommand( static const struct SelectCommand { Command reverse, forward; nsresult (NS_STDCALL nsISelectionController::*select)(bool, bool); -} selectCommands[] = { - {Command::SelectCharPrevious, Command::SelectCharNext, - &nsISelectionController::CharacterMove}, - {Command::SelectWordPrevious, Command::SelectWordNext, - &nsISelectionController::WordMove}, - {Command::SelectBeginLine, Command::SelectEndLine, - &nsISelectionController::IntraLineMove}, - {Command::SelectBeginParagraph, Command::SelectEndParagraph, - &nsISelectionController::IntraParagraphMove}, - {Command::SelectLinePrevious, Command::SelectLineNext, - &nsISelectionController::LineMove}, - {Command::SelectPageUp, Command::SelectPageDown, - &nsISelectionController::PageMove}, - {Command::SelectTop, Command::SelectBottom, - &nsISelectionController::CompleteMove}}; +} selectCommands[] = {{Command::SelectCharPrevious, Command::SelectCharNext, + &nsISelectionController::CharacterMove}, + {Command::SelectWordPrevious, Command::SelectWordNext, + &nsISelectionController::WordMove}, + {Command::SelectBeginLine, Command::SelectEndLine, + &nsISelectionController::IntraLineMove}, + {Command::SelectLinePrevious, Command::SelectLineNext, + &nsISelectionController::LineMove}, + {Command::SelectPageUp, Command::SelectPageDown, + &nsISelectionController::PageMove}, + {Command::SelectTop, Command::SelectBottom, + &nsISelectionController::CompleteMove}}; nsresult nsSelectCommand::DoCommand(const char* aCommandName, nsISupports* aCommandContext) { @@ -1114,8 +1102,6 @@ nsresult nsWindowCommandRegistration::RegisterWindowCommands( NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sWordNextString); NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sBeginLineString); NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sEndLineString); - NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sBeginParagraphString); - NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sEndParagraphString); NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sMovePageUpString); NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sMovePageDownString); NS_REGISTER_NEXT_COMMAND(nsSelectMoveScrollCommand, sLinePreviousString); @@ -1139,8 +1125,6 @@ nsresult nsWindowCommandRegistration::RegisterWindowCommands( NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectWordNextString); NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectBeginLineString); NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectEndLineString); - NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectBeginParagraphString); - NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectEndParagraphString); NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectLinePreviousString); NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectLineNextString); NS_REGISTER_NEXT_COMMAND(nsSelectCommand, sSelectPageUpString); diff --git a/dom/base/nsISelectionController.idl b/dom/base/nsISelectionController.idl index c715533d092d..4952c0fb7dbc 100644 --- a/dom/base/nsISelectionController.idl +++ b/dom/base/nsISelectionController.idl @@ -253,16 +253,6 @@ interface nsISelectionController : nsISelectionDisplay */ void intraLineMove(in boolean forward, in boolean extend); - /** IntraParagraphMove will move the selection to the front of the paragraph or end of the paragraph - * in the document. - * this will also have the effect of collapsing the selection if the aExtend = false - * the "point" of selection that is extended is considered the "focus" point. - * or the last point adjusted by the selection. - * @param aForward forward or backward if false - * @param aExtend should it collapse the selection of extend it? - */ - void intraParagraphMove(in boolean forward, in boolean extend); - /** PageMove will move the selection one page forward/backward in the document. * this will also have the effect of collapsing the selection if the aExtend = false * the "point" of selection that is extended is considered the "focus" point. diff --git a/dom/html/TextControlState.cpp b/dom/html/TextControlState.cpp index 6794b3475d89..3dbdb168a5b4 100644 --- a/dom/html/TextControlState.cpp +++ b/dom/html/TextControlState.cpp @@ -372,7 +372,6 @@ class TextInputSelectionController final : public nsSupportsWeakReference, MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHOD LineMove(bool aForward, bool aExtend) override; NS_IMETHOD IntraLineMove(bool aForward, bool aExtend) override; - NS_IMETHOD IntraParagraphMove(bool aForward, bool aExtend) override; MOZ_CAN_RUN_SCRIPT NS_IMETHOD PageMove(bool aForward, bool aExtend) override; NS_IMETHOD CompleteScroll(bool aForward) override; @@ -653,15 +652,6 @@ TextInputSelectionController::IntraLineMove(bool aForward, bool aExtend) { return frameSelection->IntraLineMove(aForward, aExtend); } -NS_IMETHODIMP -TextInputSelectionController::IntraParagraphMove(bool aForward, bool aExtend) { - if (!mFrameSelection) { - return NS_ERROR_NULL_POINTER; - } - RefPtr frameSelection = mFrameSelection; - return frameSelection->IntraParagraphMove(aForward, aExtend); -} - NS_IMETHODIMP TextInputSelectionController::PageMove(bool aForward, bool aExtend) { // expected behavior for PageMove is to scroll AND move the caret diff --git a/editor/libeditor/EditorCommands.cpp b/editor/libeditor/EditorCommands.cpp index 0444cefededf..7cdb1aeaa053 100644 --- a/editor/libeditor/EditorCommands.cpp +++ b/editor/libeditor/EditorCommands.cpp @@ -711,9 +711,6 @@ static const struct MoveCommand { Command::SelectWordNext, &nsISelectionController::WordMove}, {Command::BeginLine, Command::EndLine, Command::SelectBeginLine, Command::SelectEndLine, &nsISelectionController::IntraLineMove}, - {Command::BeginParagraph, Command::EndParagraph, - Command::SelectBeginParagraph, Command::SelectEndParagraph, - &nsISelectionController::IntraParagraphMove}, {Command::MovePageUp, Command::MovePageDown, Command::SelectPageUp, Command::SelectPageDown, &nsISelectionController::PageMove}, {Command::MoveTop, Command::MoveBottom, Command::SelectTop, diff --git a/editor/libeditor/EditorCommands.h b/editor/libeditor/EditorCommands.h index 0457720c887b..031f9057e6de 100644 --- a/editor/libeditor/EditorCommands.h +++ b/editor/libeditor/EditorCommands.h @@ -144,10 +144,6 @@ class EditorCommand : public nsIControllerCommand { case Command::EndLine: case Command::SelectBeginLine: case Command::SelectEndLine: - case Command::BeginParagraph: - case Command::EndParagraph: - case Command::SelectBeginParagraph: - case Command::SelectEndParagraph: case Command::WordPrevious: case Command::WordNext: case Command::SelectWordPrevious: diff --git a/editor/libeditor/EditorController.cpp b/editor/libeditor/EditorController.cpp index 0282d05378c6..9bb440a61505 100644 --- a/editor/libeditor/EditorController.cpp +++ b/editor/libeditor/EditorController.cpp @@ -82,10 +82,6 @@ nsresult EditorController::RegisterEditorCommands( NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_endLine"); NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_selectBeginLine"); NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_selectEndLine"); - NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_beginParagraph"); - NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_endParagraph"); - NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_selectBeginParagraph"); - NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_selectEndParagraph"); NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_wordPrevious"); NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_wordNext"); NS_REGISTER_COMMAND(SelectionMoveCommands, "cmd_selectWordPrevious"); diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp index 33aadfa2c594..d8778eae74b5 100644 --- a/layout/base/PresShell.cpp +++ b/layout/base/PresShell.cpp @@ -2360,12 +2360,6 @@ PresShell::IntraLineMove(bool aForward, bool aExtend) { return frameSelection->IntraLineMove(aForward, aExtend); } -NS_IMETHODIMP -PresShell::IntraParagraphMove(bool aForward, bool aExtend) { - RefPtr frameSelection = mSelection; - return frameSelection->IntraParagraphMove(aForward, aExtend); -} - NS_IMETHODIMP PresShell::PageMove(bool aForward, bool aExtend) { nsIFrame* frame = nullptr; diff --git a/layout/base/PresShell.h b/layout/base/PresShell.h index 16cecee65708..d2c52bb9db60 100644 --- a/layout/base/PresShell.h +++ b/layout/base/PresShell.h @@ -1365,7 +1365,6 @@ class PresShell final : public nsStubDocumentObserver, MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHOD LineMove(bool aForward, bool aExtend) override; NS_IMETHOD IntraLineMove(bool aForward, bool aExtend) override; - NS_IMETHOD IntraParagraphMove(bool aForward, bool aExtend) override; MOZ_CAN_RUN_SCRIPT NS_IMETHOD PageMove(bool aForward, bool aExtend) override; NS_IMETHOD ScrollPage(bool aForward) override; diff --git a/layout/generic/SelectionMovementUtils.h b/layout/generic/SelectionMovementUtils.h index 3991e6a34671..fd5afaf07975 100644 --- a/layout/generic/SelectionMovementUtils.h +++ b/layout/generic/SelectionMovementUtils.h @@ -140,8 +140,6 @@ class SelectionMovementUtils final { case eSelectWordNoSpace: case eSelectBeginLine: case eSelectEndLine: - case eSelectBeginParagraph: - case eSelectEndParagraph: return true; case eSelectLine: return false; diff --git a/layout/generic/nsFrameSelection.cpp b/layout/generic/nsFrameSelection.cpp index 72e1bed1ceb0..0e46e341f54f 100644 --- a/layout/generic/nsFrameSelection.cpp +++ b/layout/generic/nsFrameSelection.cpp @@ -2011,16 +2011,6 @@ nsresult nsFrameSelection::IntraLineMove(bool aForward, bool aExtend) { eLogical); } -nsresult nsFrameSelection::IntraParagraphMove(bool aForward, bool aExtend) { - if (aForward) { - return MoveCaret(eDirNext, ExtendSelection(aExtend), eSelectEndParagraph, - eLogical); - } - - return MoveCaret(eDirPrevious, ExtendSelection(aExtend), - eSelectBeginParagraph, eLogical); -} - template Result, nsresult> nsFrameSelection::CreateRangeExtendedToSomewhere( @@ -2029,8 +2019,7 @@ nsFrameSelection::CreateRangeExtendedToSomewhere( MOZ_ASSERT(aDirection == eDirNext || aDirection == eDirPrevious); MOZ_ASSERT(aAmount == eSelectCharacter || aAmount == eSelectCluster || aAmount == eSelectWord || aAmount == eSelectBeginLine || - aAmount == eSelectEndLine || aAmount == eSelectBeginParagraph || - aAmount == eSelectEndParagraph); + aAmount == eSelectEndLine); MOZ_ASSERT(aMovementStyle == eLogical || aMovementStyle == eVisual || aMovementStyle == eUsePrefStyle); diff --git a/layout/generic/nsFrameSelection.h b/layout/generic/nsFrameSelection.h index c299b587c9c6..4d68108821c2 100644 --- a/layout/generic/nsFrameSelection.h +++ b/layout/generic/nsFrameSelection.h @@ -610,17 +610,6 @@ class nsFrameSelection final { MOZ_CAN_RUN_SCRIPT_BOUNDARY nsresult IntraLineMove(bool aForward, bool aExtend); - /** - * IntraParagraphMove will generally be called from the nsISelectionController - * implementations. the effect being the selection will move to beginning or - * end of paragraph - * @param aForward move forward in document. - * @param aExtend continue selection - */ - // TODO: replace with `MOZ_CAN_RUN_SCRIPT`. - MOZ_CAN_RUN_SCRIPT_BOUNDARY nsresult IntraParagraphMove(bool aForward, - bool aExtend); - /** * CreateRangeExtendedToNextGraphemeClusterBoundary() returns range which is * extended from normal selection range to start of next grapheme cluster diff --git a/layout/generic/nsIFrame.cpp b/layout/generic/nsIFrame.cpp index 273125426438..23e5c4bcc45e 100644 --- a/layout/generic/nsIFrame.cpp +++ b/layout/generic/nsIFrame.cpp @@ -9124,10 +9124,6 @@ nsresult nsIFrame::PeekOffsetForParagraph(PeekOffsetStruct* aPos) { aPos->mContentOffset = aPos->mResultContent->GetChildCount(); } } - - aPos->mAttach = aPos->mDirection == eDirNext ? CaretAssociationHint::Before - : CaretAssociationHint::After; - return NS_OK; } @@ -9500,8 +9496,7 @@ nsresult nsIFrame::PeekOffsetForLineEdge(PeekOffsetStruct* aPos) { } nsIFrame* baseFrame = nullptr; - bool endOfLine = (eSelectEndLine == aPos->mAmount) || - (eSelectEndParagraph == aPos->mAmount); + bool endOfLine = eSelectEndLine == aPos->mAmount; if (aPos->mOptions.contains(PeekOffsetOption::Visual) && PresContext()->BidiEnabled()) { @@ -9599,13 +9594,6 @@ nsresult nsIFrame::PeekOffset(PeekOffsetStruct* aPos) { case eSelectBeginLine: case eSelectEndLine: return PeekOffsetForLineEdge(aPos); - case eSelectBeginParagraph: - case eSelectEndParagraph: - if (StaticPrefs::dom_input_caret_paragraph_movement()) { - return PeekOffsetForParagraph(aPos); - } else { - return PeekOffsetForLineEdge(aPos); - } case eSelectParagraph: return PeekOffsetForParagraph(aPos); default: { diff --git a/layout/generic/nsIFrame.h b/layout/generic/nsIFrame.h index 516c9425d689..e71ac9d94d2d 100644 --- a/layout/generic/nsIFrame.h +++ b/layout/generic/nsIFrame.h @@ -197,10 +197,8 @@ enum nsSelectionAmount { eSelectBeginLine = 5, eSelectEndLine = 6, - eSelectNoAmount = 7, // just bounce back current offset. - eSelectParagraph = 8, // select a "paragraph" - eSelectBeginParagraph = 9, - eSelectEndParagraph = 10 + eSelectNoAmount = 7, // just bounce back current offset. + eSelectParagraph = 8 // select a "paragraph" }; //---------------------------------------------------------------------- @@ -4045,7 +4043,6 @@ class nsIFrame : public nsQueryFrame { nsresult PeekOffsetForWord(mozilla::PeekOffsetStruct* aPos, int32_t aOffset); nsresult PeekOffsetForLine(mozilla::PeekOffsetStruct* aPos); nsresult PeekOffsetForLineEdge(mozilla::PeekOffsetStruct* aPos); - nsresult PeekOffsetForParagraphEdge(mozilla::PeekOffsetStruct* aPos); /** * Search for the first paragraph boundary before or after the given position diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index 6b42d6666422..742efcff3f80 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -3003,12 +3003,6 @@ value: true mirror: always -# Text input caret movement style. Disable this to restore previous behaviour (line edges instead of paragraphs). Currently only effective on macOS. -- name: dom.input.caret_paragraph_movement - type: bool - value: true - mirror: always - # How often to check for CPOW timeouts (ms). CPOWs are only timed # out by the hang monitor. - name: dom.ipc.cpow.timeout diff --git a/testing/web-platform/mozilla/tests/editor/selection-move-commands-wrapped.html b/testing/web-platform/mozilla/tests/editor/selection-move-commands-wrapped.html deleted file mode 100644 index 438cf8d1a61c..000000000000 --- a/testing/web-platform/mozilla/tests/editor/selection-move-commands-wrapped.html +++ /dev/null @@ -1,116 +0,0 @@ - -Test for nsSelectionMoveCommands on wrapped text - - - - - - diff --git a/widget/CommandList.h b/widget/CommandList.h index 68fcafbc4b39..243656bb013f 100644 --- a/widget/CommandList.h +++ b/widget/CommandList.h @@ -25,7 +25,6 @@ // Mapped from commands of some platforms NS_DEFINE_COMMAND(BeginLine, cmd_beginLine) -NS_DEFINE_COMMAND(BeginParagraph, cmd_beginParagraph) NS_DEFINE_COMMAND(CharNext, cmd_charNext) NS_DEFINE_COMMAND(CharPrevious, cmd_charPrevious) NS_DEFINE_COMMAND(Copy, cmd_copy) @@ -38,7 +37,6 @@ NS_DEFINE_COMMAND(DeleteToEndOfLine, cmd_deleteToEndOfLine) NS_DEFINE_COMMAND(DeleteWordBackward, cmd_deleteWordBackward) NS_DEFINE_COMMAND(DeleteWordForward, cmd_deleteWordForward) NS_DEFINE_COMMAND(EndLine, cmd_endLine) -NS_DEFINE_COMMAND(EndParagraph, cmd_endParagraph) NS_DEFINE_COMMAND(InsertParagraph, cmd_insertParagraph) NS_DEFINE_COMMAND(InsertLineBreak, cmd_insertLineBreak) NS_DEFINE_COMMAND(LineNext, cmd_lineNext) @@ -58,12 +56,10 @@ NS_DEFINE_COMMAND(ScrollRight, cmd_scrollRight) NS_DEFINE_COMMAND(ScrollTop, cmd_scrollTop) NS_DEFINE_COMMAND(SelectAll, cmd_selectAll) NS_DEFINE_COMMAND(SelectBeginLine, cmd_selectBeginLine) -NS_DEFINE_COMMAND(SelectBeginParagraph, cmd_selectBeginParagraph) NS_DEFINE_COMMAND(SelectBottom, cmd_selectBottom) NS_DEFINE_COMMAND(SelectCharNext, cmd_selectCharNext) NS_DEFINE_COMMAND(SelectCharPrevious, cmd_selectCharPrevious) NS_DEFINE_COMMAND(SelectEndLine, cmd_selectEndLine) -NS_DEFINE_COMMAND(SelectEndParagraph, cmd_selectEndParagraph) NS_DEFINE_COMMAND(SelectLineNext, cmd_selectLineNext) NS_DEFINE_COMMAND(SelectLinePrevious, cmd_selectLinePrevious) NS_DEFINE_COMMAND(SelectPageDown, cmd_selectPageDown) diff --git a/widget/cocoa/NativeKeyBindings.mm b/widget/cocoa/NativeKeyBindings.mm index e977928dad71..e4bdf715e2fb 100644 --- a/widget/cocoa/NativeKeyBindings.mm +++ b/widget/cocoa/NativeKeyBindings.mm @@ -125,9 +125,9 @@ void NativeKeyBindings::Init(NativeKeyBindingsType aType) { SEL_TO_COMMAND(moveLeft:, Command::CharPrevious); SEL_TO_COMMAND(moveLeftAndModifySelection:, Command::SelectCharPrevious); SEL_TO_COMMAND(moveParagraphBackwardAndModifySelection:, - Command::SelectBeginParagraph); + Command::SelectBeginLine); SEL_TO_COMMAND(moveParagraphForwardAndModifySelection:, - Command::SelectEndParagraph); + Command::SelectEndLine); SEL_TO_COMMAND(moveRight:, Command::CharNext); SEL_TO_COMMAND(moveRightAndModifySelection:, Command::SelectCharNext); SEL_TO_COMMAND(moveToBeginningOfDocument:, Command::MoveTop); @@ -136,16 +136,16 @@ void NativeKeyBindings::Init(NativeKeyBindingsType aType) { SEL_TO_COMMAND(moveToBeginningOfLine:, Command::BeginLine); SEL_TO_COMMAND(moveToBeginningOfLineAndModifySelection:, Command::SelectBeginLine); - SEL_TO_COMMAND(moveToBeginningOfParagraph:, Command::BeginParagraph); + SEL_TO_COMMAND(moveToBeginningOfParagraph:, Command::BeginLine); SEL_TO_COMMAND(moveToBeginningOfParagraphAndModifySelection:, - Command::SelectBeginParagraph); + Command::SelectBeginLine); SEL_TO_COMMAND(moveToEndOfDocument:, Command::MoveBottom); SEL_TO_COMMAND(moveToEndOfDocumentAndModifySelection:, Command::SelectBottom); SEL_TO_COMMAND(moveToEndOfLine:, Command::EndLine); SEL_TO_COMMAND(moveToEndOfLineAndModifySelection:, Command::SelectEndLine); - SEL_TO_COMMAND(moveToEndOfParagraph:, Command::EndParagraph); + SEL_TO_COMMAND(moveToEndOfParagraph:, Command::EndLine); SEL_TO_COMMAND(moveToEndOfParagraphAndModifySelection:, - Command::SelectEndParagraph); + Command::SelectEndLine); SEL_TO_COMMAND(moveToLeftEndOfLine:, Command::BeginLine); SEL_TO_COMMAND(moveToLeftEndOfLineAndModifySelection:, Command::SelectBeginLine); diff --git a/widget/cocoa/TextInputHandler.mm b/widget/cocoa/TextInputHandler.mm index 02a9a97ffb45..a7fba34f94c0 100644 --- a/widget/cocoa/TextInputHandler.mm +++ b/widget/cocoa/TextInputHandler.mm @@ -2848,9 +2848,7 @@ bool TextInputHandler::HandleCommand(Command aCommand) { case Command::WordNext: case Command::SelectWordNext: case Command::EndLine: - case Command::SelectEndLine: - case Command::EndParagraph: - case Command::SelectEndParagraph: { + case Command::SelectEndLine: { nsCocoaUtils::InitInputEvent(keypressEvent, keyEvent); keypressEvent.mKeyCode = NS_VK_RIGHT; keypressEvent.mKeyNameIndex = KEY_NAME_INDEX_ArrowRight; @@ -2876,9 +2874,7 @@ bool TextInputHandler::HandleCommand(Command aCommand) { case Command::WordPrevious: case Command::SelectWordPrevious: case Command::BeginLine: - case Command::SelectBeginLine: - case Command::BeginParagraph: - case Command::SelectBeginParagraph: { + case Command::SelectBeginLine: { nsCocoaUtils::InitInputEvent(keypressEvent, keyEvent); keypressEvent.mKeyCode = NS_VK_LEFT; keypressEvent.mKeyNameIndex = KEY_NAME_INDEX_ArrowLeft;