| Ticket UUID: | 1638905 | |||
| Title: | Accented characters mess up underline shortcuts in menues | |||
| Type: | Bug | Version: | obsolete: 8.4.14 | |
| Submitter: | fvogel | Created on: | 2007-01-18 19:39:13 | |
| Subsystem: | 13. Win Menus | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2014-02-19 21:42:21 | |
| Resolution: | Duplicate | Closed By: | fvogelnew1 | |
| Closed on: | 2007-01-19 20:29:30 | |||
| Description: |
Accented characters mess up underline shortcuts (accelerators) in menues
If a menu label has accented characters located before the -underline position in the label, then the displayed label is correct (namely the underline is at the correct place) but the -command proc associated is not triggered when the item is invoked using the keyboard accelerator. Instead, the menu is simply unposted.
Example code:
menu .m
menu .m.m1
.m add cascade -menu .m.m1 -label "My menu" -underline 3
.m.m1 add cascade -label "Aligne a gauche" -underline 9 \
-command {tk_messageBox -message "OK with no accent"}
.m.m1 add cascade -label "Aligné à gauche" -underline 10 \
-command {tk_messageBox -message "NOK with accent"}
. configure -menu .m
Invoke the first item "Aligne a gauche" of the menu using the keyboard: Alt-m followed by Alt-g: the messageBox opens. Correct.
Invoke the second item "Aligné à gauche" of the menu using the keyboard: Alt-m followed by Alt-a: the messageBox does NOT open. BUG.
However, the messageBox that is supposed to open for Alt-a actually opens with Alt-Space (WRONG) ?!?
This does not happen if the underline is before the first accented character.
I tried this on Windows 2000 and XP SP2, with Tcl/Tk 8.4.14 binaries from ActiveState.
However, when using Tcl/Tk 8.5 cvs version compiled by myself (using VS8), this issue does not show up.
Francois
| |||
| User Comments: |
fvogelnew1 added on 2007-01-20 03:29:30:
Logged In: YES user_id=1245417 Originator: YES You seem to be right. I cvs updated my 8.4-branch and compiled with VS8 on Windows. And the bug has disappeared. So it should not shop up again in 8.4.15 nor in 8.5a6. I close this report, sorry for the duplicate. dkf added on 2007-01-19 16:32:14: Logged In: YES user_id=79902 Originator: NO Duplicate of (already fixed) Bug 1599877? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki