Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#132 Implementation of TIP#158

TIP Implementation
closed-accepted
9
2004-07-05
2003-08-29
Wolf Grossi
No

To provide distinction between Return and KP_Enter on
windows, the following patch does the job:

Module: tkWinX.c
Function: GetState

Immediately following after

switch(wParam) {
case VK_SHIFT:
...
}

1133a1134,1138
> if ( HIWORD( lParam ) & KF_EXTENDED ) {
> mask |= Mod4Mask;
> prevState = ((state & mask) ^ prevState) ? 0 : 1;
> }
>

KP_Enter is recognized as Mod4-Return if bound.
Otherwise, KP_Enter is recognized as Return.

Discussion

  • Wolf Grossi
    Wolf Grossi
    2003-11-30

    Logged In: YES
    user_id=83653

    most recent changes to tkWinX.c

     
  • Kevin B KENNY
    Kevin B KENNY
    2004-04-30

    Patches implementing TIP #158

     
    Attachments
  • Kevin B KENNY
    Kevin B KENNY
    2004-04-30

    • summary: KP_Enter on Windows --> Implementation of TIP#158
     
  • Kevin B KENNY
    Kevin B KENNY
    2004-04-30

    Demo script

     
    Attachments
  • Kevin B KENNY
    Kevin B KENNY
    2004-04-30

    Logged In: YES
    user_id=99768

    The attached is a reasonably polished implementation of
    TIP #158 functionality referred to the maintainer for review.
    Also attached is a demonstration script used to show what
    Key events receive the Extended modifier

     
    • milestone: --> TIP Implementation
    • priority: 5 --> 9
     
    • assigned_to: hobbs --> dkf
    • status: open --> closed-accepted