[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Focus Callback in CDK
From: |
Thomas Dickey |
Subject: |
Re: Focus Callback in CDK |
Date: |
Tue, 8 Mar 2005 19:35:02 -0500 |
User-agent: |
Mutt/1.5.6+20040907i |
On Fri, Mar 04, 2005 at 12:12:38PM -0500, Fu Steve X wrote:
> The only way I can get it to work is to hack the CDK traverseCDKScreen()
> function. Moving the following line from the default case to right before
> the big switch. I then bind the key TAB to the ItemList to refresh the
> Scroll. That also achieves another purpose. That is, now I can register
> callback for KEY_ESC for both widgets on the cdkscreen to handle the regular
> exit/quit. I'm not using the Menu widget anyway.
> InjectObj (curobj, key);
Moving the InjectObj() there makes traverseCDKScreen() try to do two different
things with the TAB key. I'm looking now to see if there are any problems
if I make traverseCDKScreen() check if there is a user-defined binding for
the key, and in that case only call InjectObj().
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net