Prevent the delete action on delete key press [message #444610] |
Fri, 17 February 2006 18:41 |
Eclipse User |
|
|
|
Originally posted by: s.sureshram.gmail.com
Hi,
I need to prevent the delete action from occurring in my editor on delete key press based certain constraints.
I have added a KeyListener to my editor. In the listener even though i give doit = false; i couldnt prevent the delete action.
Kindly provide me a solution.
Thanks,
Suresh
|
|
|
Re: Prevent the delete action on delete key press [message #444739 is a reply to message #444610] |
Mon, 20 February 2006 12:03 |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.eclipse.org
Suresh Ram wrote:
>Hi,
>I need to prevent the delete action from occurring in my editor on delete key press based certain constraints.
>
>I have added a KeyListener to my editor. In the listener even though i give doit = false; i couldnt prevent the delete action.
>
>Kindly provide me a solution.
>
>
Note that pressing the delete key and running the Delete action are two
different things. In order to catch the delete action you need to add a
VerifyListener and not a VerifyKeyListener.
Dani
>Thanks,
>Suresh
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02854 seconds