| Ticket UUID: | 2794778 | |||
| Title: | Keyboard traversal can crash wish or make it 'unresponsible' | |||
| Type: | Bug | Version: | None | |
| Submitter: | quantifier | Created on: | 2009-05-21 11:35:47 | |
| Subsystem: | 13. Win Menus | Assigned To: | tmh | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-05-22 05:55:28 | |
| Resolution: | Fixed | Closed By: | patthoyts | |
| Closed on: | 2009-05-21 22:55:28 | |||
| Description: |
When menu is navigated by keyboard (as in: open by alt-key, navigate with arrows, invoke with enter), sometimes wish either dies, or different menus start flickering rapidly closing/opening.
I have latest 8.6 and 8.5 from ActiveState.
Waving mouse cursor around already open menus (but without clicking) seems to help reproduce it, also it is much easier to reproduce with big and complex menu, like one that Tkabber has.
This is the smallest sample I managed to reproduce bug with (after lots of tries though):
. configure -menu [menu .mb -tearoff 0]
.mb add cascade -label File -menu .mb.m0 -underline 0
menu .mb.m0 -tearoff 0
.mb.m0 add command -label New -command {puts new} -underline 0
.mb.m0 add command -label Quit -command {puts quit} -underline 0
.mb add cascade -label Options -menu .mb.m1 -underline 0
menu .mb.m1 -tearoff 0
.mb.m1 add command -label Test -command {puts test} -underline 0
| |||
| User Comments: |
patthoyts added on 2009-05-22 05:55:28:
allow_comments - 1 The problem has I think been introduced with the NRE byte engine. What is happening is that key events are concatenated into a single XKeyEvent. In the event code we loop over all the key's contained in the event and call the event handling on each one. This can lead to new event generation and the structure we are working from can be overwritten with new data. The fix is to preserve a local copy of the XKeyEvent structure while looping over the key events. Fixed on HEAD and backported to 8.5 branch | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki