[Webkit-unassigned] [Bug 17113] New: "event.ctrlKey" is always false when dragging an element with "ctrl" key down

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 31 01:54:22 PST 2008


           Summary: "event.ctrlKey" is always false when dragging an element
                    with "ctrl" key down
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fengjin at microsoft.com

(1) Keeping the ctrl key down, and drag a link 
(2) Drag it over a "div" element
(3) On the onDragOver event of the "div" element, testing the event.ctrlKey
property, its always "false". It should be "true"

------- HTML source repro this: -------
<script language="javascript">

window.onload = function()
        var oDrop = document.getElementById("divDrop");
        oDrop.addEventListener("dragover", onDragOverDiv, false);
        oDrop.addEventListener("dragenter", onDragOverDiv, false);

function onDragOverDiv(e)
        e = e || window.event;
        e.dataTransfer.dropEffect = "copy";
        shwTxt("e.ctrlKey == : " + e.ctrlKey);

function shwTxt(s)
        document.getElementById("divOutput").innerHTML += "<br>" + s;   


<div id="divDrop">drop on me</div>
<a href="www.google.com" id="divDrag">Drag me</a>

<div id="divOutput" style="top:200px"></div>

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list