Changeset 55974 in webkit
- Timestamp:
- Mar 14, 2010 8:43:52 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55973 r55974 1 2010-03-14 Jessie Berlin <jberlin@webkit.org> 2 3 Reviewed by Sam Weinig. 4 5 "event.ctrlKey" is always false when dragging an element with "ctrl" key down 6 https://bugs.webkit.org/show_bug.cgi?id=17113 7 8 No new tests. 9 10 * page/DragController.cpp: 11 (WebCore::createMouseEvent): 12 Use the current state of the shift, ctrl, alt, and meta keys when creating the drag mouse event. 13 1 14 2010-03-13 Antonio Gomes <tonikitoo@webkit.org> 2 15 -
trunk/WebCore/page/DragController.cpp
r55353 r55974 54 54 #include "Node.h" 55 55 #include "Page.h" 56 #include "PlatformKeyboardEvent.h" 56 57 #include "RenderFileUploadControl.h" 57 58 #include "RenderImage.h" … … 71 72 static PlatformMouseEvent createMouseEvent(DragData* dragData) 72 73 { 73 // FIXME: We should fake modifier keys here. 74 bool shiftKey, ctrlKey, altKey, metaKey; 75 shiftKey = ctrlKey = altKey = metaKey = false; 76 PlatformKeyboardEvent::getCurrentModifierState(shiftKey, ctrlKey, altKey, metaKey); 74 77 return PlatformMouseEvent(dragData->clientPosition(), dragData->globalPosition(), 75 LeftButton, MouseEventMoved, 0, false, false, false, false, currentTime());76 78 LeftButton, MouseEventMoved, 0, shiftKey, ctrlKey, altKey, 79 metaKey, currentTime()); 77 80 } 78 81
Note: See TracChangeset
for help on using the changeset viewer.