FLUID-760: Using arrow keys in inline edit shifts focus to text display (thus ending the edit mode).

Metadata

Source
FLUID-760
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Anastasia Cheetham
Reporter
Anastasia Cheetham
Created
2008-06-10T17:18:53.000-0400
Updated
2008-06-23T17:34:34.000-0400
Versions
N/A
Fixed Versions
  1. 0.4
Component
  1. Inline Edit

Description

To reproduce:

http://build.fluidproject.org/fluid/tests/fluid-tests/manual/inline-edit/InlineEdit.html

  • Enter edit mode (via mouse or keyboard) on any one of the fields
  • Press an arrow key

The mode switches from edit to display.

dev-iteration36

Comments

  • Anastasia Cheetham commented 2008-06-11T11:37:22.000-0400

    The check for the Enter key was only looking at evt.which - the Arrow keyCode is stored in evt.keyCode and in that case, evt.which is 0, which fails the check, so the arrow was being processed as an Enter.

    The fix is to check both keyCode and which.