Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c82185be5ce28069dcd3687b5ab68662 |
User & Date: | dkf 2012-04-22 22:07:41 |
Context
2012-04-26
| ||
11:41 | [Bug 3508771]: Implement TkClipBox, Tk*Region and Tk_GetHINSTANCE for Cygwin check-in: f65a717c user: jan.nijtmans tags: trunk | |
2012-04-22
| ||
22:07 | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! check-in: c82185be user: dkf tags: trunk | |
22:05 | [Bug 3520202]: %K must not work with <MouseWheel> or effects are undefined! check-in: 07b47d79 user: dkf tags: core-8-5-branch | |
2012-04-20
| ||
13:08 |
* generic/tkWindow.c (commands): Ensure that all descriptions of commands created by Tk are correct.check-in: 65cf98aa user: dkf tags: trunk | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2012-04-20 Donal K. Fellows <[email protected]> * generic/tkWindow.c (commands): Ensure that all descriptions of commands created by Tk are correct. 2012-04-20 Jan Nijtmans <[email protected]> | > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 2012-04-22 Donal K. Fellows <[email protected]> * generic/tkBind.c (ExpandPercents): [Bug 3520202]: Ensure that the %k, %K and %N substitutions use dummy tokens with <MouseWheel> events and that the %D subsitution is a dummy with <Key>/<KeyRelease>. This was causing significant indigestion (and a read of goodness knows what memory) to Tkinter/Python because of the way they map events between languages. 2012-04-20 Donal K. Fellows <[email protected]> * generic/tkWindow.c (commands): Ensure that all descriptions of commands created by Tk are correct. 2012-04-20 Jan Nijtmans <[email protected]> |
︙ | ︙ |
Changes to generic/tkBind.c.
︙ | ︙ | |||
2024 2025 2026 2027 2028 2029 2030 | TkpPrintWindowId(numStorage, eventPtr->xmaprequest.window); } else { TkpPrintWindowId(numStorage, eventPtr->xany.window); } string = numStorage; goto doString; case 'k': | | | 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 | TkpPrintWindowId(numStorage, eventPtr->xmaprequest.window); } else { TkpPrintWindowId(numStorage, eventPtr->xany.window); } string = numStorage; goto doString; case 'k': if ((flags & KEY) && (eventPtr->type != MouseWheelEvent)) { number = eventPtr->xkey.keycode; goto doNumber; } goto doString; case 'm': if (flags & CROSSING) { number = eventPtr->xcrossing.mode; |
︙ | ︙ | |||
2164 2165 2166 2167 2168 2169 2170 | } goto doNumber; case 'D': /* * This is used only by the MouseWheel event. */ | | | | | 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 | } goto doNumber; case 'D': /* * This is used only by the MouseWheel event. */ if ((flags & KEY) && (eventPtr->type == MouseWheelEvent)) { number = eventPtr->xkey.keycode; goto doNumber; } goto doString; case 'E': number = (int) eventPtr->xany.send_event; goto doNumber; case 'K': if ((flags & KEY) && (eventPtr->type != MouseWheelEvent)) { const char *name = TkKeysymToString(keySym); if (name != NULL) { string = name; } } goto doString; case 'N': if ((flags & KEY) && (eventPtr->type != MouseWheelEvent)) { number = (int) keySym; goto doNumber; } goto doString; case 'P': if (flags & PROP) { string = Tk_GetAtomName((Tk_Window) winPtr, |
︙ | ︙ |