Double click event not working on Windows 7 + IE 11 when control does not have focus

时间:2015-06-30 13:57:36

标签: windows-7 internet-explorer-11

My system configuration is Windows 7 service pack1, 64 bit operation system and IE version is 11.0.9600.17843 (update version 11.0.20).

Kindly check this url provided by MSDN for double click event:

http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/ondblclickEX.htm

To reproduce issue on Windows 7 + IE 11 follow below step:

  1. Move focus to address bar by clicking on address bar.

  2. Now double click on text box, double click event does not fire.

This issue does not reproduce on Windows 8 + IE 11 OR Windows 7 + IE version < 11.

Below is the code copied from: https://msdn.microsoft.com/en-us/library/ms536921(v=vs.85).aspx

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function addItem()
{
sNewItem = new Option(txtEnter.value)
selList.add(sNewItem);
}
</script>
</head>
<body>
<p>Enter text and then double-click in the text box to
   add text to the list box.</p>
<input type="text" name="txtEnter" value="Enter_text" 
   ondblclick="addItem()"><br><br>
<select name="selList" size="5"></select>
</body>
</html>

I'm also getting this double click issue for ActiveX control created in VB6 for environment Windows 7 + IE 11.

My ActiveX application working fine on Windows 8 + IE 11.

Kindly provide me any solution or workaround for this issue.

1 个答案:

答案 0 :(得分:0)

要解决此问题,请按照以下步骤启用尚未具有焦点的控件的双击事件。

  1. 单击“开始”,单击“运行”,在“打开”框中键入regedit,然后单击“确定”。
  2. 找到并单击以下注册表子项:HKEY_Current_User \ Software \ Microsoft \ Internet Explorer \ Main
  3. 右键单击Main,指向New,然后选择DWORD(32位)Value。
  4. 键入HangRecovery作为名称,然后按Enter键。
  5. 在“数值数据”框中将默认值设置为0。
  6. 退出注册表编辑器。
  7. 清除Internet Explorer的缓存。