3617: The Markdown text editor does not behave like a native textarea in response to many keyboard shortcuts

acid****@gmai***** (Google Code) (Is this you? Claim this profile.)
darteaga
What version are you running?
2.0.6

What's the URL of the page containing the problem?
Any review page.

What steps will reproduce the problem?
Use any of the keyboard shortcuts that I've listed below.

What is the expected output? What do you see instead?
The editor should do exactly what a native textarea does.  In reality, it does something different.

What operating system are you using? What browser?
Win 7 64-bit, Firefox 28 and IE 11.

Please provide any additional information below.
1. Home and End move the caret to the wrong place.
Pressing Home moves the caret to just after the preceding line break.  Pressing End moves the cart to just before the next line break.  This is wrong, the caret should move within the current line of text, as laid out on the screen.

2. Ctrl+Right moves the caret to the wrong place.  I've used a pipe to show the caret's position:
Start: |foo bar
Press Ctrl+Right
Native: foo |bar
RB: foo| bar

3. Ctrl+Del leaves extra space behind.
Start: foo |bar baz
Press Ctrl+Del 
Native: foo |baz
RB: foo | baz

4. Ctrl+Del deletes too much text.
Start: foo| bar baz
Press Ctrl+Del
Native: foo|bar baz
RB: foo| baz
david
#1 david
The home/end issue (#1) is already fixed and will ship in 2.0.9.
david
#2 david
  • +EasyFix
    +Project-ReviewBoard
    +Component-WebUI
#3 darteaga
  • +darteaga
david
#4 david

After some experimentation, #s 2-4 seem to be highly platform specific. There's not much we can do here without adding a lot of extra complexity to the code.

Since #1 was the most critical issue, and that's been fixed, I'm calling this done.

  • -New
    +Fixed