FLUID-1145: Pressing the 'esc' key, while in an inline edit field, will erase the content; using IE

Metadata

Source
FLUID-1145
Type
Bug
Priority
Critical
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Justin Obara
Created
2008-08-14T14:49:47.000-0400
Updated
2009-02-10T08:29:37.000-0500
Versions
  1. 0.4
  2. 0.5beta1
  3. 0.5
  4. 0.6beta1
  5. 0.6
  6. 0.7
Fixed Versions
  1. 0.8
Component
  1. Inline Edit

Description

Pressing the 'esc' key, while in a an inline edit field, will erase the content

Steps to reproduce:

1) Open the inline edit demo from the daily build site:

2) Navigate to one of the inline edit fields

3) Activate the inline edit field

4) Press the 'esc' key. notice that the content is erased and the change is saved

Environments

IE6, IE7 (Win XP)
IE7 (Win Vista)
IE6 (Win 2000)

Comments

  • Jacob Farber commented 2008-08-25T15:08:23.000-0400

    Using the ESC key to erase a text input field in IE6/IE7 is the native behaviour for IE (see www.google.com as an example )

    I would think this as extremely hazardous native behaviour. Rather than wiping out the field and saving, perhaps it would be more preferable to simply undo the last action and then exit editing the field.

    Can we overwrite the native behaviour?

  • Justin Obara commented 2008-08-28T09:15:37.000-0400

    in the bSpace example (http://build.fluidproject.org/fluid/sample-code/inline-edit/section-info/section-info.html) this only occurs after pressing the 'esc' key twice after the caret is displayed

  • Justin Obara commented 2008-09-22T12:53:27.000-0400

    Bug Parade: 0.5 release

  • Justin Obara commented 2009-01-30T10:00:39.000-0500

    After erasing a single field with the escape key, just activating other fields will cause them to erase as well.

  • Antranig Basman commented 2009-02-06T19:25:17.000-0500

    Fixed at revision 6444

  • Justin Obara commented 2009-02-09T08:42:20.000-0500

    Seems to be working in all but one example.
    http://build.fluidproject.org/fluid/sample-code/inline-edit/announcements/announcements.html

  • Antranig Basman commented 2009-02-09T11:35:32.000-0500

    Fixed further, at revision 6448 - it seems IE will only "sometimes" allow this cancellation, unless it is on onkeydown, rather than onkeypress

  • Justin Obara commented 2009-02-10T08:28:19.000-0500

    Verified fix using:

    IE6 (Win XP)
    IE7 (Win Vista)

  • Justin Obara commented 2009-02-10T08:28:56.000-0500

    forgot to delete bug parade comment, will reopen and close again after deletion of the comment

  • Justin Obara commented 2009-02-10T08:29:37.000-0500

    deleted bug parade comment, closing again.