ICEfaces
  1. ICEfaces
  2. ICE-10553

Revert Draggable position when Escape key is pressed while dragging

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P07
    • Fix Version/s: EE-1.8.2.GA_P08
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      n/a

      Description

      When dragging a panelGroup, if the escape key is pressed, the panelGroup will drop over the current mouse position. It would be preferable to revert the panel to it's original position

      http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html
      http://extjs.com/deploy/dev/examples/tree/reorder.html

      http://demo.script.aculo.us/shop (reverted to old position when pressing "escape")
      http://wiki.script.aculo.us/scriptaculous/page/print/SortableListsDemo (dropped into the list on pressing "escape")

        Activity

        Hide
        Arturo Zambrano added a comment -

        r44775: modified Draggable class to revert the panel being dragged when pressing the Escape key, whether or not the component has 'revert' in the dragOptions attribute; added fix for Webkit browsers since they weren't capturing the Escape key.

        Show
        Arturo Zambrano added a comment - r44775: modified Draggable class to revert the panel being dragged when pressing the Escape key, whether or not the component has 'revert' in the dragOptions attribute; added fix for Webkit browsers since they weren't capturing the Escape key.
        Hide
        Arturo Zambrano added a comment -

        I noticed the reverting doesn't re-position elements correctly in newer browsers, do I created ICE-10699 to keep track of that issue.

        Show
        Arturo Zambrano added a comment - I noticed the reverting doesn't re-position elements correctly in newer browsers, do I created ICE-10699 to keep track of that issue.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: