FLUID-2843: Pressing the "Enter" key also triggers button press, when trying to open Inline Edit field: using IE

Metadata

Source
FLUID-2843
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Michelle D'Souza
Reporter
Justin Obara
Created
2009-05-29T07:26:41.000-0400
Updated
2009-05-29T13:18:25.000-0400
Versions
N/A
Fixed Versions
  1. 1.1
Component
  1. Inline Edit
  2. Keyboard Accessibility

Description

Pressing the "Enter" key also triggers button press, when trying to open Inline Edit field

Steps to reproduce:

1) Open the sakai announcements example
http://build.fluidproject.org/infusion/integration-demos/sakai/html/inline-edit-announcements.html

2) Using the keyboard, 'tab' to one of the inline edit fields

3) Tap the 'enter' key to attempt to open the inline edit field in edit mode

Notice that the pressing the 'enter' key also activates the 'Update' button, and attempts to move you to another page.

Environments

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

Attachments

Comments

  • Justin Obara commented 2009-05-29T09:53:07.000-0400

    I believe that this issue was introduced at r7254

  • Antranig Basman commented 2009-05-29T10:49:33.000-0400

    It appears that return semantics for jQuery events do not work the way I imagined. In fact, jQuery.trigger never makes any return other than undefined - even if a handler has made a return. The only way out of this is to explicitly construct an event object using jQuery.event before invoking trigger, so that we may inspect its condition after our new synthetic fluid-activate event has completed. Patch attached

  • Justin Obara commented 2009-05-29T13:18:25.000-0400

    Verified fix using:

    IE6, IE8 (Win XP)
    IE8 (Win Vista)