Page MenuHomePhabricator

Home and End keys behave differently in CodeMirror
Closed, ResolvedPublic

Description

Steps to reproduce

  1. Open WikiEditor (2010)
  2. Turn highlighting on
  3. Write a two or more line paragraph
  4. Place a cursor in the middle of the paragraph
  5. Press Home or End key
  1. Open WikiEditor (2010)
  2. Turn highlighting off
  3. Write a two or more line paragraph
  4. Place a cursor in the middle of the paragraph
  5. Press Home or End key

--> Compare

Expected behavior
With or without highlighting I would expect the same behavior.

Current behavior
In MediaWiki-extensions-CodeMirror Home and End keys move the cursor at the beginning/end of the whole paragraph. In plain WikiEditor (2010) Home and End keys move the cursor at the beginning/end of the current line