diff options
author | marc_culler <marc.culler@gmail.com> | 2023-11-21 23:16:52 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2023-11-21 23:16:52 (GMT) |
commit | b0d31264c787b4be2ebc7c76087cab702a2a5aed (patch) | |
tree | ae3c9158a49f5a12417acd2ad69a2f4adc2bb1a0 /macosx | |
parent | e248b31dcf690c7e53152483247d999679106ca5 (diff) | |
download | tk-b0d31264c787b4be2ebc7c76087cab702a2a5aed.zip tk-b0d31264c787b4be2ebc7c76087cab702a2a5aed.tar.gz tk-b0d31264c787b4be2ebc7c76087cab702a2a5aed.tar.bz2 |
Add bindings for Scrollbar and Listbox. Fix bindings for Text.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXMouseEvent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c index 899ec02..36ed501 100644 --- a/macosx/tkMacOSXMouseEvent.c +++ b/macosx/tkMacOSXMouseEvent.c @@ -559,7 +559,7 @@ enum { delta = (deltaX << 16) | (deltaY & 0xffff); if (delta != 0) { xEvent.type = MouseWheelEvent; - xEvent.xbutton.state = state | ControlMask ; + xEvent.xbutton.state = state | ControlMask; xEvent.xkey.keycode = delta; xEvent.xany.serial = LastKnownRequestProcessed(Tk_Display(tkwin)); Tk_QueueWindowEvent(&xEvent, TCL_QUEUE_TAIL); @@ -575,6 +575,7 @@ enum { } delta = (unsigned int)(int)[theEvent scrollingDeltaX]; if (delta != 0.0) { + xEvent.type = MouseWheelEvent; xEvent.xbutton.state = state | ShiftMask; xEvent.xkey.keycode = delta > 0 ? 120 : -120; xEvent.xany.serial = LastKnownRequestProcessed(Tk_Display(tkwin)); |