title: How to receive mouse and keyboard events and override default behaviour for Eclipse ITextEditor?
body: <p>I'd like to create an Eclipse plugin that emulates the behaviour of the vi text editor. This would require changing the way mouse and keyboard events are handled. So, for example if the user presses "h" while in Normal Mode, the cursor should move left, rather than inserting the "h" character into the text buffer. I've found <a href="http://dev.eclipse.org/mhonarc/lists/platform-dev/msg00016.html" rel="nofollow">an old mailing list post</a> that describes how to listen to changes in the document, and changes in the presentation, but nothing that describes how to intercept low-level keyboard and mouse events, such that the default behaviour can be overridden. What would be the best way to accomplish this?</p>