Ah, perfect! However, I notice that there are messages for keyboard events as well. But, when I press something on the keyboard, the key stroke messages are not caught or printed. Just displays as if nothings happened. Does the BMessageFilter not catch key messages? Thanks, Yash On Wed, Jun 3, 2009 at 1:22 AM, Rene Gollent <anevilyak@xxxxxxxxx> wrote: > On Tue, Jun 2, 2009 at 8:10 AM, Yashasvi A.C. <yashasviac@xxxxxxxxx> > wrote: > > Yup, it prints out the 3 letter message. But, what header were you > > mentioning here? Did you mean Message.h? There is nothing about the > message > > constant in the header file. > > > > Those constants are almost all defined in headers/os/app/AppDefs.h > > HTH, > > Rene > >