diff options
author | wolfsuit <wolfsuit> | 2003-02-19 19:27:43 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2003-02-19 19:27:43 (GMT) |
commit | e891595e16225fe441b40805b6bc3f1e9ff7cc75 (patch) | |
tree | e88ef97ca29843dc17db985018abfbbb170e7a5d /ChangeLog | |
parent | 6e2cd243ccc9bd454ae118549066ad2669c00160 (diff) | |
download | tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.zip tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.tar.gz tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.tar.bz2 |
This submission contains a slightly reworked & cleaned up version of
two parts of the patches in Patch Tracker #622582 -
new-evthdlng.2003-02-12.diff and basic-keyboard.2003-02-10.diff. The
second part puts translation of MacOS X keycodes to characters on a
better footing. The first part relaxs Tk's policy of consuming all
events unless it can see they go to windows it didn't create. This
change gets the little traffic lights working, and should make things
like QuickTimeTcl easier to implement.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 84 |
1 files changed, 84 insertions, 0 deletions
@@ -1,3 +1,87 @@ +2003-02-19 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> + & Jim Ingham <jingham@apple.com> + + This patch changes the default Tk behavior so that events + are by default routed to the standard event handlers after + Tk has looked at them. + + * macosx/tkMacOSXEvent.h: Rename "handledByTk" into + "stopProcessing". + + * macosx/tkMacOSXEvent.c: Update erroneous comments and + remove unused includes. + (TkMacOSXProcessAppleEvent): Don't declare events + handled that we didn't even look at. + (TkMacOSXProcessEvent): Add a comment on policy for + "stopProcessing". + (TkMacOSXProcessEvent): Remove "handling" of events that + are not our business. + (TkMacOSXProcessEvent): Rename "handledByTk" into + "stopProcessing". + (ReceiveAndProcessEvent): Ditto. + (ReceiveAndProcessEvent): Tune error production of + message. + + * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): + Rename "handledByTk" into "stopProcessing". + + * macosx/tkMacOSXWindowEvent.c: Ditto. + + * macosx/tkMacOSXMouseEvent.c: Remove setting of + "handledByTk". + (TkMacOSXProcessMouseEvent): Handle clicks in the "traffic + lights" in the window title when the window (or app) is + in the background. + + + This patch changes the key event handling to use the MacOS + translation mechanisms. It also improves dead key handling. + + * macosx/tkMacOSXKeyEvent.c (InitKeyData): Add. + (InitKeyEvent): Add. + (DecodeViaUnicodeResource): Rename + KeycodeToUnicodeViaUnicodeResource. + (DecodeViaKCHRResource): Rename KeycodeToUnicodeViaKCHRResource. + (GetKeyboardLayout): Use a boolean flag instead of a special + layout id. + + (KeycodeToUnicodeViaUnicodeResource): Change interface and + implementation to return a Unicode string instead of directly + filling an XEvent. + (KeycodeToUnicodeViaKCHRResource): Ditto. + (KeycodeToUnicodeViaUnicodeResource): Add handling for callers + that don't want deadkey processing (i.e. XKeycodeToKeysym). + (KeycodeToUnicodeViaKCHRResource): Ditto. + (KeycodeToUnicodeViaUnicodeResource): Clear deadKeyState if a + character was produced. + (KeycodeToUnicodeViaKCHRResource): Use CFString and current + keyboard encoding instead of Tcl Tcl_ExternalToUtf() and fixed + TkMacOSXCarbonEncoding. + (TkMacOSXKeycodeToUnicode): Add. + + (TkMacOSXProcessKeyboardEvent): Add some heuristics to improve + keyup events. + (deadKeyState): Split into deadKeyStateUp and deadKeyStateDown. + (GenerateKeyEvent): Change interface and implementation to accept + a Unicode string instead of individual characters. + (GenerateKeyEvent): Don't generate string representations for + special characters. + + * macosx/tkMacOSXEvent.h (TkMacOSXKeycodeToUnicode): Add + prototype. + + * macosx/tkMacOSXKeyboard.c (KCHRPtr): Remove. + (XKeycodeToKeysym): Use TkMacOSXKeycodeToUnicode instead of + KeyTranslate. + (XKeycodeToKeysym): Support latin-1 keysyms. + + This patch reverts the hack to put icons in menus that Vince put + in yesterday (but preserves the bug fix in that submission.) + + * macosx/tkMacOSXMenu.c (SetMenuTitle): revert treating + "<bullet> number" as a request to put icon number <number> in + the menu. + 2003-02-18 Mo DeJong <mdejong@users.sourceforge.net> * doc/entry.n: |