Bug 73072 - Movement of mouse dblclick on any point of the browser viewport ,cause a keyboard event
Summary: Movement of mouse dblclick on any point of the browser viewport ,cause a keyb...
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 23:59 PST by manjun.han
Modified: 2011-11-27 17:10 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description manjun.han 2011-11-23 23:59:04 PST
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>
Comment 1 Alexey Proskuryakov 2011-11-24 12:50:51 PST
I cannot reproduce this. Perhaps you are opening Web Inspector with a keyboard shortcut?
Comment 2 manjun.han 2011-11-27 17:10:44 PST
(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 !