| Description: |
OriginalBugID: 870 Bug
Version: 8.0.3
SubmitDate: '1998-11-25'
LastModified: '2000-04-13'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: ericm
RelatedBugIDs: 1160 947 2487
OS: All
FixedDate: '2000-04-13'
FixedInVersion: 8.3.1
From: "DUPERVAL, LAURENT" <[email protected]>
Subject: Missing keysyms on Windoze (Bug)
Date: Wed, 21 Oct 1998 13:26:39 -0400
I tested keysyms on Linux and on WinNT with the following code:
button .b
bind .b <KeyPress> {.b configure -text "%K"}
pack .b -fill x
When running it on WinNT, pressing The right Alt, Shift and Control keys show Alt_L, Shift_L and Control_L while on Linux, it says _R. The Windows keys appear properly as Win_L and Win_R on WinNT but as Meta_L and Meta_R on Linux; I'm guessing this could be an Xserver issue since I don't have the latest and greatest on my machine (not sure about version #). The menu key shows as "Menu" on Linux but "App" on WinNT.
I didn't find anything to this effect in Dejanews. Looking in win/tkWinKey.c, it looks like the {Shift|Alt|Control}_R keys are undefined, but I dunno for what reason (not explained in source code). I'm guessing that Windows can't make a difference between left and right keys (which would be stoopid but not surprising) or that a conscious decision was made not to support this on Windoze (which is a bad decision IMHO). As for the
Menu/App difference, I'm at a lost.
The Linux problems are likely all due to key mapping. They are
unlikely to recognize the new Win* name, and use Meta* as a good
replacement.
The problem with *_L and *_R seems to be a Windows quirk or bug.
-- 10/21/1999 hobbs
--
The problem on Windows is that Windows only gives us an undifferentiated "Control is pressed" message -- it does not distinguish between left and right keys. However, we can query this information explicitly ourselves, if we see that Control (or Shift, or Alt) is pressed. I added the code to do this; the fix will go out with 8.3.1.
- eric
-- 04/13/2000 ericm
|