Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Prevent the delete action on delete key press
Prevent the delete action on delete key press [message #444610] Fri, 17 February 2006 18:41 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:opening editor and keeping focus on view (tree)
Next Topic:[RCP Export] ClassNotFoundException - Solution
Goto Forum:
  


Current Time: Mon Dec 09 17:00:45 GMT 2024

Powered by FUDForum. Page generated in 0.05124 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top