I’m working on a document application and part of this application I’ve to add support to read the keyboard pressed events and replace the pre-defined characters set if that keyboard entry is match with the pre-defind short form/word.The actual application has implemented in C++.
Please provide me your thoughts on how to implement this. Is there any sample C++ program for reference? algorithm/concepts?
Standard C++ doesn’t support keypress events, so you’ll have to look at either an OS function, or a framework function. Portable C++ frameworks like wxWidgets or Qt support keypress events on Windows, Mac and Linux.