summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyEvent.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate MODULE_SCOPE wrapper function for TkMacOSXDrawable(). Rename ↵jan.nijtmans2020-09-021-8/+8
| | | | (internal) TkMacOSXDrawableWindow() to TkMacOSXGetNSWindowForDrawable(). Code (type-cast) cleanup
* Fix the build for Snow Leopard. Fix the fontchooser demo.culler2020-07-241-0/+2
|
* More fixes from [7ebdd17974] (thanks Christopher Chavez): remove the ↵marc_culler2020-07-151-9/+0
| | | | needsRedisplay flag, update comments.
* Merge 8.6jan.nijtmans2020-07-121-2/+2
|\
| * Fix [34214bbdae]: typographical fixes in comments. Thanks to Christopher Chavez.fvogel2020-07-081-1/+1
| |
* | A different attempt to make sure new windows are completely drawn.culler2020-06-061-2/+1
|/
* Add the macOS support, using the TkWheelEvent but not the TkKeyEvent since ↵culler2020-05-141-23/+2
| | | | macOS no longer needs trans_chars.
* Aqua: Fix an error in Tk_SetCaretPos.culler2020-05-121-1/+1
|
* Deal with the Menu key and possibly other keys that Apple does not use.culler2020-05-121-0/+8
|
* Add non-regression tests.marc_culler2020-05-041-8/+23
|
* Add comments, set virtual to REPLACEMENT_VIRTUAL when inserting IME text too.marc_culler2020-05-031-3/+4
|
* Replace one hash table with an array; make keycodes work in text and entry; ↵marc_culler2020-05-031-28/+61
| | | | use bitfields; stop bind from sign extending keycodes.
* Deal with <Oslash> ~ <Shift-oslash> ~ <Shift-Option-o> ~ <Shift-Option-O> ~ ↵marc_culler2020-04-291-16/+20
| | | | <Option-O> ... and fix <BackSpace> and improve injection of key NSEvents.
* Eliminate use of nbytes, which seems to be superfluous on macOS; edit some ↵marc_culler2020-04-271-3/+1
| | | | comments
* Fix crash when Tk is deactivated while the character selection popup is ↵marc_culler2020-04-271-3/+14
| | | | open. Nice catch by Christopher Chavez!
* Deal with Apple's Backspace key.marc_culler2020-04-271-1/+3
|
* Revert change to tkMacOSXMouseEvent.c which broke local grabs and add a NULL ↵culler2020-04-261-0/+3
| | | | pointer guard in setupXEvent.
* Tidy up; expand comments; clarify NSTextInputClient logic; deal with keyPad ↵culler2020-04-261-39/+37
| | | | buttons.
* Figured out how to make empty trans_chars, and dealt with menu and control ↵culler2020-04-261-2/+4
| | | | characters.
* Prevent a crash in setXEventPoint by checking for NULL wmInfoPtrculler2020-04-251-7/+9
|
* Remove no-op bindings for function keys and set trans_chars appropriately.culler2020-04-251-1/+12
|
* Fixing IME broke Latin1; make both work. Use a flag so deciding whether to ↵culler2020-04-251-38/+60
| | | | use the TextInputClient will be more robust.
* Fix a logic error that broke IME and remove the static caret_win variable.marc_culler2020-04-251-11/+15
|
* Add x, y, X and Y to key events.culler2020-04-241-1/+40
|
* Fix [4fa083dd3f]: Should not set the caret position for a window which is ↵culler2020-04-241-26/+23
| | | | not receiving key events.
* Send all chars up to 0x7F to the TextInputClient so non-Latin1 keyboards ↵marc_culler2020-04-211-1/+1
| | | | work again.
* Process Control-Tab normally; stop using an illegal value for send_event as ↵culler2020-04-201-23/+15
| | | | a flag.
* Fix two typos and a bug -- thanks to Christopher Chavez.culler2020-04-201-4/+4
|
* Another rewrite of tkProcessKeyEvent to repair and clarify the logic of when ↵marc_culler2020-04-201-118/+96
| | | | to use the TextInputClient and when to send an XEvent.
* Another major overhaul: more code cleanup; make event generate work for ↵marc_culler2020-04-191-25/+43
| | | | Home, End, ...; distinguish left and right mod keys.
* Fix [585584ad66]: Aqua: event generate not working for function keysculler2020-04-171-99/+22
|
* Fix misplaced parentheses and other errors in commit 61e70e0f.culler2020-04-161-12/+13
|
* Workaround for [3767882e06]: X Error of failed request: BadLength (poly ↵jan.nijtmans2020-04-141-9/+9
|\ | | | | | | request too large or internal Xlib length error)
* | Fix [87bade7e14]: PressAndHold composition misbehaves.marc_culler2020-03-241-173/+128
|/
* Make MODULE_SCOPE functions start with "Tk". Also simplify ↵jan.nijtmans2019-12-041-1/+1
| | | | TkUtfToNSString(), making use of Tcl_UtfToUniCharDString()
* Implement non-BMP unicode for macOSculler2019-11-191-32/+20
|\
| * Implement non-BMP unicode for macOS when TCL_UTF_MAX = 3 by encoding ↵culler2019-11-181-32/+20
| | | | | | | | surrogates as 3-byte UTF-8-ish sequences.
* | Correct some errors revealed by building on macOS 10.6culler2019-11-191-2/+2
|/
* Somewhat more progress on [a179564826]: Tk 8.6: prevent issues when ↵jan.nijtmans2019-11-011-4/+2
| | | | | | | 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)
* Apply patch from Kevin Walzer to restore functionality of Cut/Copy/Paste ↵culler2019-10-281-17/+2
| | | | keyboard shortcuts on Aqua.
* Aqua: fix IME behavior; make accent menus work; rework Services; deal with ↵culler2019-10-251-79/+192
|\ | | | | | | non-BMP pastes.
| * Make Apple's press-and-hold accent menu work with Tk entry and text widgets.culler2019-10-241-34/+52
| |
| * Prevent a crash which could occur if the window were defocussed during IME ↵culler2019-10-241-5/+22
| | | | | | | | composition.
| * Rework and simplify services so the TkService object won't interfere with ↵culler2019-10-231-1/+0
| | | | | | | | IME. It didn't need to be a subclass of NSView, or be in the Responder chain.
| * More progress on implementing IMEculler2019-10-221-33/+28
| |
| * Fix [39de9677aa]: incorrect IME behaviorculler2019-10-221-51/+135
| |
* | Fix [0854c99473]: macOS key events during a local grab are not handled ↵culler2019-10-221-7/+14
|/ | | | correctly.
* Remove call to idletasks in tkMacOSXKeyEvent.cKevin Walzer2019-09-291-1/+1
|
* Branch to test Christopher Chavez patch in ticket [2beda17141] to remove ↵Kevin Walzer2019-09-241-2/+3
| | | | some hard-coded values from canvas, allow canvas to vary apperance in Dark Mode on macOS and also on Windows
* Fix more X11 function signatures in MacOSX portjan.nijtmans2019-08-191-1/+2
|