| Ticket UUID: | 797404 | |||
| Title: | Implementation of TIP#158 | |||
| Type: | Patch | Version: | TIP Implementation | |
| Submitter: | magro | Created on: | 2003-08-29 16:57:56 | |
| Subsystem: | 01. Bindings | Assigned To: | dkf | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2004-07-06 04:23:15 | |
| Resolution: | Accepted | Closed By: | dkf | |
| Closed on: | 2004-07-05 21:23:15 | |||
| Description: |
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.
| |||
| User Comments: |
kennykb added on 2004-05-01 03:41:12:
File Added - 85680: exttest.tcl 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 kennykb added on 2004-05-01 03:31:48: File Deleted - 69102: kennykb added on 2004-05-01 03:31:47: File Added - 85678: tip158.patch magro added on 2003-11-30 17:48:27: File Added - 69102: tkWinX.c Logged In: YES user_id=83653 most recent changes to tkWinX.c | |||
Attachments:
- exttest.tcl [download] added by kennykb on 2004-05-01 03:41:12. [details]
- tip158.patch [download] added by kennykb on 2004-05-01 03:31:47. [details]
