diff options
| author | YAMAMOTO Mitsuharu | 2007-01-22 08:28:15 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-01-22 08:28:15 +0000 |
| commit | 0f5c7719938013adc74e844069a6772ea46c0a67 (patch) | |
| tree | e1b2e384deb1d618965bb2c52bf3264577e71acf /src | |
| parent | 1879b65c3d6a2c939ef57008bbce0adf7f367e07 (diff) | |
| download | emacs-0f5c7719938013adc74e844069a6772ea46c0a67.tar.gz emacs-0f5c7719938013adc74e844069a6772ea46c0a67.zip | |
[TARGET_API_MAC_CARBON] (mac_do_receive_drag): Don't
pass keyboard modifiers to mac_store_drag_event, but put them as
kEventParamKeyModifiers Apple event parameter.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macselect.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/macselect.c b/src/macselect.c index f9193574bfb..8e86c7651e2 100644 --- a/src/macselect.c +++ b/src/macselect.c | |||
| @@ -1562,10 +1562,17 @@ mac_do_receive_drag (window, refcon, drag) | |||
| 1562 | GlobalToLocal (&mouse_pos); | 1562 | GlobalToLocal (&mouse_pos); |
| 1563 | err = GetDragModifiers (drag, NULL, NULL, &modifiers); | 1563 | err = GetDragModifiers (drag, NULL, NULL, &modifiers); |
| 1564 | } | 1564 | } |
| 1565 | if (err == noErr) | ||
| 1566 | { | ||
| 1567 | UInt32 key_modifiers = modifiers; | ||
| 1568 | |||
| 1569 | err = AEPutParamPtr (&apple_event, kEventParamKeyModifiers, | ||
| 1570 | typeUInt32, &key_modifiers, sizeof (UInt32)); | ||
| 1571 | } | ||
| 1565 | 1572 | ||
| 1566 | if (err == noErr) | 1573 | if (err == noErr) |
| 1567 | { | 1574 | { |
| 1568 | mac_store_drag_event (window, mouse_pos, modifiers, &apple_event); | 1575 | mac_store_drag_event (window, mouse_pos, 0, &apple_event); |
| 1569 | AEDisposeDesc (&apple_event); | 1576 | AEDisposeDesc (&apple_event); |
| 1570 | mac_wakeup_from_rne (); | 1577 | mac_wakeup_from_rne (); |
| 1571 | return noErr; | 1578 | return noErr; |