How to write a plugin that can react on keystrokes in an editor window?

Edward

Member
How can I write some C++ code to react on keystrokes (or any events) when someone is typing something in into the editor? I have seen plugins doing that (texType) - but I would like to know if someone can share some knowledge and or code fragments with me on how to make that happen?
 
Are you thinking of creating a VI editor? That would be fantastic!

Originally posted by Edward:
How can I write some C++ code to react on keystrokes (or any events) when someone is typing something in into the editor? I have seen plugins doing that (texType) - but I would like to know if someone can share some knowledge and or code fragments with me on how to make that happen?
 
Yeah no problem!

Well actually I am wondering how you can react on keystrokes so you can define custom behaviour easier without having to move your hands from the keyboard itself (or by using functions keys)...
Or how to put an event on the editor user interface element itself so you can react on changes within it automatically instead of having the user press a special function key.

For exampel the user types in ' nw ' and it will display the current date/time.
 
Back
Top