Bug 73072
| Summary: | Movement of mouse dblclick on any point of the browser viewport ,cause a keyboard event | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | manjun.han <hmj030986> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
manjun.han
Overview:
In the CHrome or Safari , when add a 'keydown' event handler to the HTMLDocument Object , then any double click movement will trigger the the keydown event handler to be
executed.I have no idea if this is a bug of the webkit . Because the dblclick movement will cause some content of the browser to be selected.Below is my test code :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Webkit内核浏览器鼠标双击事件引发一个键盘事件</title>
<script>
document.addEventListener('keydown' , function(evt){
console.dir(evt)
} , false);
</script>
</head>
<body>
<div>Double click in any place of the browser(Chrome , Safari),Open the console view of the debugger</div>
</body>
</html>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I cannot reproduce this. Perhaps you are opening Web Inspector with a keyboard shortcut?
manjun.han
(In reply to comment #1)
> I cannot reproduce this. Perhaps you are opening Web Inspector with a keyboard shortcut?
I doubt if it's the problem of the 'Web Inspector with a keyboard shortcut',my test version of the broswer is Chrome : 15.0.874.0 ! But there is no problem for the same code executed in the FireFox(version : 8.0) with the opening debugger firebug ! I am a new guy for the Web developer !