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

Vadim Zeitlin <[email protected]>
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
On Mon, 6 Mar 2006 00:53:04 +0200 Nerijus Baliunas <[email protected]> wrote:

NB> Thanks. What I want to do is to make spacebar act as Enter, i.e. scroll
NB> message by line (as I usually read messages by pressing D repeatedly
NB> and then X, so I could scroll with the same hand by using spacebar).

 Hmm, I don't understand how does it imply that you need to scroll by line
because IMHO scrolling by page is more convenient but well.

NB> (sorry, sf.net cvs ssh is down now, so I cannot give a diff):

[it just came back online, finally, I was trying to commit changes for
 several hours already]

NB> line 4323:
NB>       switch ( event.GetKeyCode() )
NB>       {
NB>          case WXK_SPACE:
NB> #if !defined DEBUG_nerijus 
NB>             m_MessagePreview->PageDown();
NB>             return true;
NB> #endif 
NB>          case WXK_RETURN:
NB>             m_MessagePreview->LineDown();
NB>             return true;
NB>       }

 If you want space act as enter why didn't you call LineDown() above?

NB> line 4613:
NB>       case WXK_RETURN:
NB> #if !defined DEBUG_nerijus 
NB>       case WXK_SPACE:
NB> #endif 
NB>          // let the control process these keys as they're used for navigation
NB>          event.Skip();
NB>          return false;
NB> 
NB> Now pressing spacebar does not select/deselect message, but it scrolls
NB> only when focus is in the message part. But Enter scrolls always. How can
NB> I make spacebar act as Enter?

 I think the answer is above: I call LineDown() explicitly for Enter to
make this work and so you should do the same for the space.

 Regards,
VZ



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.