Nerijus Baliunas | 6 Mar 2006 01:35
Picon

Re: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 01:26:44 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ> NB>          case WXK_SPACE:
VZ> NB> #if !defined DEBUG_nerijus 
VZ> NB>             m_MessagePreview->PageDown();
VZ> NB>             return true;
VZ> NB> #endif 
VZ> NB>          case WXK_RETURN:
VZ> NB>             m_MessagePreview->LineDown();
VZ> NB>             return true;
VZ> NB>       }
VZ> 
VZ>  If you want space act as enter why didn't you call LineDown() above?

I did. If DEBUG_nerijus is defined (as in my case), WXK_SPACE is the same
as WXK_RETURN. And this part works, what doesn't work is it doesn't scroll
when focus is not in the message preview window.

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Vadim Zeitlin | 6 Mar 2006 01:41
Favicon

Re[2]: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 02:35:12 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> On Mon, 6 Mar 2006 01:26:44 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:
NB> 
NB> VZ> NB>          case WXK_SPACE:
NB> VZ> NB> #if !defined DEBUG_nerijus 
NB> VZ> NB>             m_MessagePreview->PageDown();
NB> VZ> NB>             return true;
NB> VZ> NB> #endif 
NB> VZ> NB>          case WXK_RETURN:
NB> VZ> NB>             m_MessagePreview->LineDown();
NB> VZ> NB>             return true;
NB> VZ> NB>       }
NB> VZ> 
NB> VZ>  If you want space act as enter why didn't you call LineDown() above?
NB> 
NB> I did. If DEBUG_nerijus is defined (as in my case), WXK_SPACE is the same
NB> as WXK_RETURN.

 Oops, sorry, I misread the code.

NB> And this part works, what doesn't work is it doesn't scroll when focus
NB> is not in the message preview window.

 Hmm, weird, I don't see LineDown() being called from anywhere else, it
should happen from here. Where is exactly the focus when it doesn't work
and what happens, i.e. does it still select/unselect the list control items
or not?

VZ
(Continue reading)

Nerijus Baliunas | 6 Mar 2006 01:55
Picon

Re: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 01:41:17 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ> NB> And this part works, what doesn't work is it doesn't scroll when focus
VZ> NB> is not in the message preview window.
VZ> 
VZ>  Hmm, weird, I don't see LineDown() being called from anywhere else, it
VZ> should happen from here. Where is exactly the focus when it doesn't work
VZ> and what happens, i.e. does it still select/unselect the list control items
VZ> or not?

No, it doesn't unselect anymore. If I press left mouse button in the message text,
spacebar works as Enter, but if I press left mouse button in message list (folder view),
Enter key works, but spacebar does nothing. The same with both gtk1 and 2.

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Gmane