summaryrefslogtreecommitdiffstats
path: root/win/tkWinKey.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2024-06-171-6/+6
|\
| * Move scrollbar sanity checks from platform-code to generic. Fix indenting in ↵jan.nijtmans2024-06-171-6/+6
| | | | | | | | win/* files
* | Starting work to compile Tk with TCL_UTF_MAX=4 (WIP)jan.nijtmans2023-11-271-2/+2
|/
* More -Wconversion C warning fixesjan.nijtmans2023-03-061-1/+2
|
* -1 -> TCL_INDEX_NONEjan.nijtmans2023-03-031-2/+2
|
* Merge 8.6 (more TCL_UNUSED usage)jan.nijtmans2023-02-071-4/+2
|\
* | Fix building against Tcl 8.6 headersjan.nijtmans2022-04-031-1/+1
| |
* | Eliminate compile warnings, due to the usage of ↵jan.nijtmans2022-04-011-2/+2
| | | | | | | | Tcl_ExternalToUtfDString()/Tcl_UtfTExternalDString() macro's in Tcl 9.0
* | Merge 8.6jan.nijtmans2022-03-021-16/+7
|\ \ | |/
| * Code cleanup (more TCL_UNUSED, more type-casts, eol-spacing)jan.nijtmans2022-03-021-14/+14
| |
* | Change (non-standard, Windows-only) keysyms "Win_L", "Win_R" and "App" ↵jan.nijtmans2021-01-181-1/+1
|\ \ | |/ | | | | | | keycodes to be the same as "Super_L", "Super_R" and "Menu". Make old usage deprecated, but - for now - it still works. Update keysymdef.h to match latest X11R6 version. Fix documentation (some keysym's were still missing)
* | (c) -> ©jan.nijtmans2020-12-091-1/+1
| |
* | Fix [34214bbdae]: typographical fixes in comments. Thanks to Christopher Chavez.fvogel2020-07-081-1/+1
|\ \ | |/
| * Fix [34214bbdae]: typographical fixes in comments. Thanks to Christopher Chavez.fvogel2020-07-081-1/+1
| |
* | Revert part of [27e083eed755bf65], which broke the Windows build.jan.nijtmans2020-05-221-5/+5
| |
* | Fix some deprecation/unused parameter compiler warningsjan.nijtmans2020-05-191-5/+5
| |
* | Merge 8.6jan.nijtmans2020-05-151-2/+3
|\ \ | |/
| * Fix [a953736b546ce681cbfc]: Potential wrong use of TkKeyEvent. Finally done ↵jan.nijtmans2020-05-151-2/+3
| | | | | | | | | | | | what's suggested there: Since kePtr->charValuePtr is only used on X11, only do the ckfree(kePtr->charValuePtr) on X11. On Win32, use TkKeyEvent in stead of the non-standard XEvent. On macOS TkKeyEvent is not used, so no change is needed (- MC).
* | Merge 8.6jan.nijtmans2020-04-061-1/+1
|\ \ | |/
| * Better implementation of TkUtfToUniChar(), one that doesn't require ↵jan.nijtmans2020-04-061-38/+40
| |\ | | | | | | | | | cooperation of Tcl (TCL_UTF_MAX>3). Just let Tk do the splitting of 4-byte UTF-8 sequences into surrogates.
* | \ Finish for MacOS toojan.nijtmans2020-03-091-1/+1
|\ \ \
* | | | Add XkbOpenDisplay and XkbKeycodeToKeysym to X11 stub table. MacOS not done yet.jan.nijtmans2020-03-091-0/+17
|/ / /
* | | Merge 8.7. More WIP.jan.nijtmans2019-12-161-7/+16
| |/ |/|
* | Now that TkUniCharToUtf() produces maximum of 4 bytes, reduce storage. More ↵jan.nijtmans2019-11-211-1/+1
| | | | | | | | | | code simplifications. Disallow Emoji on X11 without xft, just use replacement character then.
* | Add support for 4 keycodes on Windows (Mail, AudioMedia, Launch0 and ↵jan.nijtmans2019-11-131-36/+38
| | | | | | | | | | | | Launch1), which some keyboards might have. Add more header-files, with available keycodes on various platforms, and add some missing keysyms to ks_names.h (adapted from X11R6). This improves compatibility for Windows/MacOSX compared to X11R6.
* | Somewhat more progress on [a179564826]: Tk 8.6: prevent issues when ↵jan.nijtmans2019-11-011-1/+1
|/ | | | | | | encountering non-BMP Unicode characters. Increase XMaxTransChars from 4 to 7, at the same time reducing the nbytes field from int to unsigned char. This makes more room to NULL-terminate the trans_chars array in the XEvent, even when it's 4 bytes in length. (fully binary compatible, since the nbytes field is not supposed to be accessed externally)
* Use more explicit *W()-forms of the Win32 API, instead of relying on -DUNICODEjan.nijtmans2019-09-231-7/+7
|
* TCHAR -> WCHAR conversions, since our TCHAR is actually WCHAR when compiling ↵jan.nijtmans2019-09-161-3/+3
| | | | everything in UNICODE mode on Windows.
* More use of Tcl_WinTCharToUtf() in stead of Tcl_UniCharToUtfDString(), ↵jan.nijtmans2019-03-191-1/+1
| | | | making Tk less sensitive to the value of TCL_UTF_MAX (either 3, 4, or 6)
* Proposed fix for [499526180d]: Add support for windows multimedia virtual ↵fvogel2017-01-281-2/+9
| | | | keys. Patch by ralfixx
* 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 ↵fvogel2016-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.