summaryrefslogtreecommitdiffstats
path: root/win/tkWinKey.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [e36963bfe8]: event generate and diaeresisjan.nijtmans2016-10-231-19/+19
|
* clearify commentjan.nijtmans2016-09-271-1/+1
|
* Internal code simplification: Store Unicode character in keycode field in ↵jan.nijtmans2016-09-271-15/+0
| | | | stead of trans_chars. No behavior change, just use a different internal event type.
* Introduce two utility functions for handling Unicode surrogate pairs, and ↵jan.nijtmans2016-09-261-17/+4
| | | | use it in tkWinKey.c. No change in functionality.
* merge core-8-6-branchjan.nijtmans2016-09-081-12/+18
|\
| * Fixed [2945130fff] for the right Control and Alt keys. WONTFIX the case of ↵fvogel2016-09-041-12/+18
| |\ | | | | | | | | | the right Shift key due to Windows plaftorm limitation.
| | * Left and right Control and Alt keys are distinguished using the Extended ↵bug_2945130ffffvogel2016-08-111-12/+18
| | | | | | | | | | | | flag (the previously implemented trick only worked for KeyPress, not for KeyRelease).
| * | Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-2/+2
| |/ | | | | | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
* | (experiment) don't fill trans_chars any more when send_event == -3. Results ↵jan.nijtmans2016-09-011-6/+9
| | | | | | | | in many simplifications while it still should work the same
* | Enhance TkpGetString() to handle Unicode characters, even when TCL_UTF_MAX==3.jan.nijtmans2016-08-301-4/+12
|/
* Change XChangeWindowAttributes signature and many others to match Xorg, ↵jan.nijtmans2012-06-081-1/+2
|\ | | | | | | needed for Cygwin
| * Change XSetDashes signature and many others to match Xorg, needed for Cygwinjan.nijtmans2012-06-051-1/+2
| |\
| | * Change XSetDashes signature and many others to match Xorg, needed for Cygwin. jan.nijtmans2012-06-011-8/+9
| | | | | | | | | Add .PHONY targets, and various quoting issues (Makefile.in)
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+0
| | |
| * | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-131-1/+1
| |\ \ | | |/
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * win/tkWinKey.c: Add WM_UNICHAR window message support (used byhobbs2006-08-301-1/+8
| | | | | | | | | | | | * win/tkWinX.c: virtual keyboard apps). [Bug 1518677] (petasis)
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-13/+10
| | | | | | | | | using useful casts internally.
* | | tkWindow.c/tkStubInit.c adapted from stub changes in Tclnijtmans2010-02-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tkArgv.c make defaultTable const tkScrollbar.c Store default for "-with" in static non-const memory tkWinInt.h make tkWinProcs const, and 5 tkWinX.c procs MODULE_SCOPE tkWinColor.c make sysColors const tkWinKey.c make keymap const tkWinScrlbr.c Simplify copying of "-with" default value. tkUnixWm.c make TkSetTransientFor static tests/textImage.test textImage-1.13 depends on hash-order
* | | Eliminate tkpMenubuttonClassnijtmans2010-01-131-2/+2
| | | | | | | | | | | | | | | make tkpButtonProcs CONST fix gcc warnings: missing initializer
* | | CONSTify return values of TkKeysymToString,nijtmans2009-12-161-2/+2
|/ / | | | | | | | | | | | | TkFindStateString, TkpGetString, TkpGetChar, which are all not supposed to be modified by the caller. In tkUtil.c this gets rid of a dangerous type cast.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Assorted minor cleanups.dkf2007-09-081-18/+17
| |
* | * win/tkWinKey.c: Add WM_UNICHAR window message support (used byhobbs2006-08-301-1/+8
| | | | | | | | * win/tkWinX.c: virtual keyboard apps). [Bug 1518677] (petasis)
* | More fixes (mostly getting rid of excess spaces)dkf2005-12-021-74/+81
| |
* | ANSIficationdkf2005-12-021-195/+198
|/
* win/tkWinKey.c (TkpSetKeycodeAndState): removed old debug infohobbs2001-05-301-9/+1
|
* * win/makefile.vc:hobbs2001-03-301-5/+24
| | | | | | | | | * win/configure: * win/tcl.m4: added imm32.lib to LIBS_GUI for Tk IME support. * win/tkWinInt.h: * win/tkWinKey.c: * win/tkWinX.c: added support for changing IME on the fly in Windows (2000). (lam) [Patch #402993]
* clarified internal commentshobbs2000-04-151-2/+2
|
* * win/tkWinKey.c: Added check for ASCII delete character inericm2000-04-151-2/+22
| | | | | KeycodeToKeysym, to fix [Bug: 5090]. See comment in code for more information.
* * generic/ks_names.h: Added Scroll_Lock and Sys_Req definitions.ericm2000-04-151-746/+711
| | | | | | | * win/tkWinKey.c: Changed implementation of KeycodeToKeysym, et. al., to use a keycode table for lookups; this will result in faster keycode -> keysym translations for non-ASCII keys like Control, Alt, etc.
* * win/tkWinKey.c: Added smarts to check whether the left or rightericm2000-04-141-715/+746
| | | | | | | | Control, Shift, or Alt key was pressed. [Bug: 870]. * win/tkWin3d.c: * unix/tkUnix3d.c: Tweaked threshhold for using different highlight computation.
* * tests/event.test: Added test for [event generate $widgetericm2000-04-101-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | <Alt-z>] [Bug: 4611]. * tests/choosedir.test: Changed "namespace import ::tcltest" to "namespace import -force ::tcltest". * win/tkWinKey.c: * unix/tkUnixKey.c: * mac/tkMacKeyboard.c: Changed InitKeymapInfo to TkpInitKeymapInfo. [Bug: 4611]. * generic/tkStubInit.c: * generic/tkIntDecls.h: Re-gen'd from tkInt.decls. * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function decls. * generic/tkBind.c (HandleEventGenerate): Added code to initialize keymap info if necessary, and to correctly set modifier bits in XEvent structure create to handle [event generate] calls. Previously, the alt/meta bits were not set correctly, so [event generate $widget <Alt-z>] would always fail. [Bug: 4611]
* * generic/tk.decls:hobbs2000-02-091-18/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: * generic/tkInt.decls: * generic/tkIntDecls.h: * generic/tkStubInit.c: * mac/tkMacKeyboard.c: * unix/tkUnixKey.c: * win/tkWinKey.c: Fix for keyboard handling of "dead" keys and caps lock from Peter Spjuth. Split functions into platform specific files: Static functions GetKeySym(), SetKeycodeAndState() and InitKeymapInfo() from tkBind.c moved into platform files tkWinKey.c tkUnixKey.c and tkMacKeyboard.c. GetKeySym() and SetKeycodeAndState() renamed to Tkp* and made public (as private functions) in tkInt.decls. Step 2, fixes in tkWinKey.c New static function: KeycodeToKeysym(), based on XKeycodeToKeysym() but with different arguments, and a lot of improvements. TkpGetString() changed to use KeycodeToKeysym() + other fixes. TkpGetKeySym() changed to use KeycodeToKeysym() + other fixes. InitKeymapInfo() changed to use KeycodeToKeysym(). TkpSetKeycodeAndState() rewritten, mostly by copying code from XKeysymToKeycode(). XKeycodeToKeysym() rewritten. Preferably it should be removed. EXPLANATION: The main problem is ToAscii() which has a lot of side effects, and also that XKeycodeToKeysym() is not provided enough input to do a proper job. The changes' main goal is to avoid calling ToAscii() if not necessary, and to provide it with as correct information as possible when called. Also some attempts to clean up what ToAscii() did are done. See the code for details. BUGS FIXED: Typing shifted (and AltGr) dead keys did not work. Keyboard lock lamps did not work on Win98. Events regarding AltGr-keys behaved badly. Example: On a Swedish keyboard, $ is typed with AltGr-4. That keyboard event would get the keysym '4' not 'dollar'. Also, doing [event generete . <Key-dollar>] would send keysym '4'. Translation to ascii in TkpGetString did not handle return and tab correctly. I.e. [event generate . <Key-Return>] gave wrong %A
* * win/tkWinKey.c: fixed XKeysymToKeycode to handle mapping ofhobbs1999-10-301-10/+13
| | | | symbolic keysyms (Left, Home, ...) with event generate
* * makefile.vc: changed 'c:/program files' to c:/progra~1hobbs1999-10-291-3/+1
|
* * Merged 8.1 branch into the main trunkstanton1999-04-161-42/+30
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* New Windows keysymswelch1998-07-061-0/+10
|
* Initial revisionrjohnson1998-04-011-0/+360