On Sun, 5 Mar 2006 01:15:57 +0100 Vadim Zeitlin <[EMAIL PROTECTED]> wrote:
VZ> NB> how can I make M to ignore spacebar to select/unselect messages?
VZ> NB> I searched for WXK_SPACE and found it only in 2 places in
wxFolderView.cpp.
VZ>
VZ> This is the standard key of wxListCtrl so to prevent it from working like
VZ> it does now you'd need to catch WXK_SPACE in wxFolderView and ignore it
VZ> (instead of calling event.Skip()).
Thanks. What I want to do is to make spacebar act as Enter, i.e. scroll message
by line (as I usually read messages by pressing D repeatedly and then X, so I
could scroll with the same hand by using spacebar). So I changed code like this
(sorry, sf.net cvs ssh is down now, so I cannot give a diff):
line 4323:
switch ( event.GetKeyCode() )
{
case WXK_SPACE:
#if !defined DEBUG_nerijus
m_MessagePreview->PageDown();
return true;
#endif
case WXK_RETURN:
m_MessagePreview->LineDown();
return true;
}
line 4613:
case WXK_RETURN:
#if !defined DEBUG_nerijus
case WXK_SPACE:
#endif
// let the control process these keys as they're used for navigation
event.Skip();
return false;
Now pressing spacebar does not select/deselect message, but it scrolls
only when focus is in the message part. But Enter scrolls always. How can
I make spacebar act as Enter?
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
_______________________________________________
Mahogany-Developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers