Status: New
Owner: ----

New issue 177 by tbit455...@aol.com: When deleting a selected node using the keyboard <DEL> a selection change is not fired
http://code.google.com/p/piccolo2d/issues/detail?id=177

What is the expected output? What do you see instead?
A selection change is done (see code below) but I also expect a selection
changed, because the selection changes if the node has been deleted by
keyboard action.
Instead no selection changed can be catched

PSelectionEventHandler.java
    /**
     * Delete selection when delete key is pressed (if enabled).
     *
     * @param e the key press event
     */
    public void keyPressed(final PInputEvent e) {
        if (e.getKeyCode() == KeyEvent.VK_DELETE && deleteKeyActive) {
            final Iterator selectionEn = selection.keySet().iterator();
            while (selectionEn.hasNext()) {
                final PNode node = (PNode) selectionEn.next();
                node.removeFromParent();
            }
            selection.clear();
// The following code is my change to make it run; possible solution?
//            postSelectionChanged();
        }
    }



What version of the product are you using? On what operating system?
1.2.1 and 1.3
Windows Vista

Please provide any additional information below.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to