On 2014-01-13 at 10:41:59 [+0100], Stephan Aßmus <superstippi@xxxxxx> wrote: > Maybe this is how it could work: The BWindow captures the key event, > generates an appropriate BMessage (B_TEXT_EDITOR_ACTION or similar) > containing some predefined action constants and some flags (extend > selection, ...). The view is supposed to signify it handled the message. > If the view does not, then the window generates the keydown event as > normal. I am a bit fuzzy on the details here, specifically how the BView > signifies it handled the message, since one probably does not want to > actually post a message. Maybe call MessageReceived() directly and see > if the message ends up in the window, but that seems hacky. Otherwise a > new virtual function would be an alternative which returns a boolean for > example. Another (not much less hacky) way: call MessageReceived directly, and have the view add a "I handled this" field to the message. This can be checked after MessageReceived returns. -- Adrien.