Re: [JPP-Devel] ESC for ConstrainedMultiClickTool

2010-02-23 Thread Stefan Steiniger
thanks again Larry Becker wrote: > Committed. The code is: > > public void keyReleased(KeyEvent e) > { > if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) > { > if (coordinates.size() > 1) > coordinates.remove(coordinates.si

Re: [JPP-Devel] ESC for ConstrainedMultiClickTool

2010-02-23 Thread Larry Becker
Committed. The code is: public void keyReleased(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) { if (coordinates.size() > 1) coordinates.remove(coordinates.size() - 1); panel.repaint();

Re: [JPP-Devel] ESC for ConstrainedMultiClickTool

2010-02-22 Thread Stefan Steiniger
thanks Volker.. "we" should commit that ;) tmrw. Larry Becker schrieb: > Unlike MultiClickTool, ConstrainedMultiClickTool ends with both > double-click and right-click. Adding Escape sounds like a valid > enhancement to me. > > regards, > Larry > > On Mon, Feb 22, 2010 at 9:20 AM,

Re: [JPP-Devel] ESC for ConstrainedMultiClickTool

2010-02-22 Thread Larry Becker
Unlike MultiClickTool, ConstrainedMultiClickTool ends with both double-click and right-click. Adding Escape sounds like a valid enhancement to me. regards, Larry On Mon, Feb 22, 2010 at 9:20 AM, wrote: > Hi, > > it's just a small thing, but it is kind of intuitive to cancel a gesture by > pre

[JPP-Devel] ESC for ConstrainedMultiClickTool

2010-02-22 Thread vowaha19
Hi, it's just a small thing, but it is kind of intuitive to cancel a gesture by pressing Escape, imo. To implement that for an instance of ConstrainedMultiClickTool would be quite easy by changing the current keypressed-method in line 337: public void keyPressed(KeyEvent e){