Tk Source Code

View Ticket
Login
Ticket UUID: 220345
Title: Typing Alt-X, where X is some letter, always results in a beep
Type: Bug Version: obsolete: 8.0
Submitter: welch Created on: 2000-10-31 23:16:52
Subsystem: 68. Win Window Operations Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-04-25 23:48:53
Resolution: Fixed Closed By: dgp
    Closed on: 2001-04-25 16:48:53
Description:
OriginalBugID: 571 Bug
Version: 8.0
SubmitDate: '1998-04-15'
LastModified: '1998-08-04'
Severity: LOW
Status: Released
Submitter: stanton
ChangedBy: stanton
OS: Windows NT
OSVersion: 4.0
Machine: NA
FixedInVersion: 8.0.3
ClosedDate: '1998-08-04'


>Reply-To: [email protected]
>From: Tom Tromey <[email protected]>
>Date: 18 Feb 1998 15:29:59 -0700
>
>I'm using Tk 8.0 on Windows NT 4.
>
>Typing Alt-X, where X is some letter, always results in a beep for me,
>even if I have an <Alt-KeyPress> binding.
>
>This is because these events are translated into WM_MENUCHAR messages
>by Windows.  The Tk code only handles certain WM_MENUCHAR events.
>
>I fixed this by changing Tk_TranslateWinEvent and GenerateXEvent to
>handle WM_MENUCHAR messages.  I can send a patch if you'd like it.
>
>Tom

fixed by handling WM_SYSKEYDOWN, WM_SYSKEYUP, and synthesizing WM_SYSCHAR