[EMAIL PROTECTED] (Johan Vromans) writes:
> Good suggestion. However, it still doesn't work.
I think this is the explanation:
From: Vadim Zeitlin <[EMAIL PROTECTED]>
Subject: Re: onkeyup in Linux GTK+2
To: [EMAIL PROTECTED]
Date: Wed, 26 Mar 2008 00:46:25 +0100
On Tue, 25 Mar 2008 14:07:47 -0700 (PDT) raananb <[EMAIL PROTECTED]> wrote:
r> onkeyup catches key events in Windows for wxFrame but not for
r> wxDialog. When compiling the same code in Linux (Ubuntu GTK+2,
r> GCC) keyboard events are not caught by onkeyup neither in
r> wxFrame nor in wxDialog.
r>
r> How can I process keyboard events in at least wxFrame in Linux?
Normally you create a wxWindow inside it and handle key events in it.
So, apparently, it just doesn't work in a Wx::Dialog window.
I've attached the accel to an inner window and now it works as
expected.
-- Johan