Internet Explorer hangs when holding in space and tabbing through a form












1















Internet explorer seems to be hang after you tab through form inputs while holding in spacebar



to illustrate the problem I've setup a really simple form with 3 checkboxes.
http://inkistudios.com/tests/checkbox.html



if you press tab until you get to a checkbox input.
try holding in spacebar as if you would toggle the checkbox using your keyboard.
but then press tab to switch to another checkbox before releasing the spacebar.
this seems to cause Internet explorer to hang , you cannot drag the window around , and clicking on anything on the page seems to check/uncheck the checkbox you tabbed out of.
so Internet Explorer seems to still be waiting for spacebar to be released on the first checkbox...
I tried this in Internet Explorer 7, 8 and 9, all seems to have the same result.



I was wondering if anybody has a solution for this.
maybe some javascript that would force the browser to release the state it is in ?



I've already tried unfocusing the element or putting focus on another element using jquery in case that happens , but nothing I've tried seems to solve it.










share|improve this question

























  • i am not sure if everybody has this problem with internet explorer. if you've tried it and don't have any problems please let me know. so i can ignore this problem :)

    – Aaike
    Feb 17 '12 at 0:34
















1















Internet explorer seems to be hang after you tab through form inputs while holding in spacebar



to illustrate the problem I've setup a really simple form with 3 checkboxes.
http://inkistudios.com/tests/checkbox.html



if you press tab until you get to a checkbox input.
try holding in spacebar as if you would toggle the checkbox using your keyboard.
but then press tab to switch to another checkbox before releasing the spacebar.
this seems to cause Internet explorer to hang , you cannot drag the window around , and clicking on anything on the page seems to check/uncheck the checkbox you tabbed out of.
so Internet Explorer seems to still be waiting for spacebar to be released on the first checkbox...
I tried this in Internet Explorer 7, 8 and 9, all seems to have the same result.



I was wondering if anybody has a solution for this.
maybe some javascript that would force the browser to release the state it is in ?



I've already tried unfocusing the element or putting focus on another element using jquery in case that happens , but nothing I've tried seems to solve it.










share|improve this question

























  • i am not sure if everybody has this problem with internet explorer. if you've tried it and don't have any problems please let me know. so i can ignore this problem :)

    – Aaike
    Feb 17 '12 at 0:34














1












1








1


0






Internet explorer seems to be hang after you tab through form inputs while holding in spacebar



to illustrate the problem I've setup a really simple form with 3 checkboxes.
http://inkistudios.com/tests/checkbox.html



if you press tab until you get to a checkbox input.
try holding in spacebar as if you would toggle the checkbox using your keyboard.
but then press tab to switch to another checkbox before releasing the spacebar.
this seems to cause Internet explorer to hang , you cannot drag the window around , and clicking on anything on the page seems to check/uncheck the checkbox you tabbed out of.
so Internet Explorer seems to still be waiting for spacebar to be released on the first checkbox...
I tried this in Internet Explorer 7, 8 and 9, all seems to have the same result.



I was wondering if anybody has a solution for this.
maybe some javascript that would force the browser to release the state it is in ?



I've already tried unfocusing the element or putting focus on another element using jquery in case that happens , but nothing I've tried seems to solve it.










share|improve this question
















Internet explorer seems to be hang after you tab through form inputs while holding in spacebar



to illustrate the problem I've setup a really simple form with 3 checkboxes.
http://inkistudios.com/tests/checkbox.html



if you press tab until you get to a checkbox input.
try holding in spacebar as if you would toggle the checkbox using your keyboard.
but then press tab to switch to another checkbox before releasing the spacebar.
this seems to cause Internet explorer to hang , you cannot drag the window around , and clicking on anything on the page seems to check/uncheck the checkbox you tabbed out of.
so Internet Explorer seems to still be waiting for spacebar to be released on the first checkbox...
I tried this in Internet Explorer 7, 8 and 9, all seems to have the same result.



I was wondering if anybody has a solution for this.
maybe some javascript that would force the browser to release the state it is in ?



I've already tried unfocusing the element or putting focus on another element using jquery in case that happens , but nothing I've tried seems to solve it.







internet-explorer accessibility hang tabbing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 7:48









Cœur

17.7k9106145




17.7k9106145










asked Feb 16 '12 at 23:54









AaikeAaike

136515




136515













  • i am not sure if everybody has this problem with internet explorer. if you've tried it and don't have any problems please let me know. so i can ignore this problem :)

    – Aaike
    Feb 17 '12 at 0:34



















  • i am not sure if everybody has this problem with internet explorer. if you've tried it and don't have any problems please let me know. so i can ignore this problem :)

    – Aaike
    Feb 17 '12 at 0:34

















i am not sure if everybody has this problem with internet explorer. if you've tried it and don't have any problems please let me know. so i can ignore this problem :)

– Aaike
Feb 17 '12 at 0:34





i am not sure if everybody has this problem with internet explorer. if you've tried it and don't have any problems please let me know. so i can ignore this problem :)

– Aaike
Feb 17 '12 at 0:34












1 Answer
1






active

oldest

votes


















1














I was able to reproduce this behavior using two versions of IE:




  • IE 8 (version 8.0.7601.1754).

  • IE 9 (version 9.0.8112.16421, update version 9.0.4)


Clicking the title bar of the window toggled the checkbox, in addition to being able to click anywhere in the page. I found that it releases the window as soon as you press space again.



This looks like a bug in how IE handles focus. Since the window releases as soon as space is pressed again, I thought maybe it would be possible to write JavaScript to simulate a space bar press. Here's the script I worked out based on your test case:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="none">
<meta name="viewport" content="width=960">

<title>checkbox test</title>

</head>
<body>

<h1>Checkbox test</h1>

<input name="item1" id="item1" value="1" checked="checked" type="checkbox" />
<label for="item1">item1</label><br />

<input name="item2" id="item2" value="2" checked="checked" type="checkbox" />
<label for="item2">item2</label><br />

<input name="item3" id="item3" value="3" type="checkbox" />
<label for="item3">item3</label>

<script>
<!--
var spaceDown = false;
var tabDown = false;

window.onload = function(){
document.onkeydown = function(){
if(event.keyCode == 32){ spaceDown = true; }
if(event.keyCode == 9){ tabDown = true; }
}

document.onkeyup = function(){
if(spaceDown && tabDown){
console.log("Danger, Will Fobinson!");
console.log("Simulating space bar press ...");
var e = document.createEventObject();
e.altKey = false;
e.ctrlKey = false;
e.shiftKey = false;
e.keyCode = 32;

document.fireEvent("onkeydown", e);
document.fireEvent("onkeyup", e);
}

if(event.keyCode == 32){ spaceDown = false; }
if(event.keyCode == 9){ tabDown = false; }
}
}



// -->
</script>

</body>
</html>


Unfortunately, when you trigger the danger condition in IE 8 (focus a checkbox, space down, tab down), it increases IE's CPU usage a LOT and pops up a little dialog box saying:



Dialog box saying: 'stack overflow at line: 0'



So that's not very helpful.



And as you discovered, the focus() and blur() methods don't seem to do anything helpful in this instance either.



So basically, I think your only option is to report it as a bug to the IE team, and hope they fix it. I'm not sure how you do that actually. In theory you can submit IE feedback at http://connect.microsoft.com/IE -- but you'll need to log in with a Windows Live ID, and I'm not sure how you get one of those.



Other than that ... well, let's just hope that not too many people trigger the bug!






share|improve this answer
























  • wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

    – Aaike
    Mar 31 '12 at 13:40











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f9320951%2finternet-explorer-hangs-when-holding-in-space-and-tabbing-through-a-form%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














I was able to reproduce this behavior using two versions of IE:




  • IE 8 (version 8.0.7601.1754).

  • IE 9 (version 9.0.8112.16421, update version 9.0.4)


Clicking the title bar of the window toggled the checkbox, in addition to being able to click anywhere in the page. I found that it releases the window as soon as you press space again.



This looks like a bug in how IE handles focus. Since the window releases as soon as space is pressed again, I thought maybe it would be possible to write JavaScript to simulate a space bar press. Here's the script I worked out based on your test case:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="none">
<meta name="viewport" content="width=960">

<title>checkbox test</title>

</head>
<body>

<h1>Checkbox test</h1>

<input name="item1" id="item1" value="1" checked="checked" type="checkbox" />
<label for="item1">item1</label><br />

<input name="item2" id="item2" value="2" checked="checked" type="checkbox" />
<label for="item2">item2</label><br />

<input name="item3" id="item3" value="3" type="checkbox" />
<label for="item3">item3</label>

<script>
<!--
var spaceDown = false;
var tabDown = false;

window.onload = function(){
document.onkeydown = function(){
if(event.keyCode == 32){ spaceDown = true; }
if(event.keyCode == 9){ tabDown = true; }
}

document.onkeyup = function(){
if(spaceDown && tabDown){
console.log("Danger, Will Fobinson!");
console.log("Simulating space bar press ...");
var e = document.createEventObject();
e.altKey = false;
e.ctrlKey = false;
e.shiftKey = false;
e.keyCode = 32;

document.fireEvent("onkeydown", e);
document.fireEvent("onkeyup", e);
}

if(event.keyCode == 32){ spaceDown = false; }
if(event.keyCode == 9){ tabDown = false; }
}
}



// -->
</script>

</body>
</html>


Unfortunately, when you trigger the danger condition in IE 8 (focus a checkbox, space down, tab down), it increases IE's CPU usage a LOT and pops up a little dialog box saying:



Dialog box saying: 'stack overflow at line: 0'



So that's not very helpful.



And as you discovered, the focus() and blur() methods don't seem to do anything helpful in this instance either.



So basically, I think your only option is to report it as a bug to the IE team, and hope they fix it. I'm not sure how you do that actually. In theory you can submit IE feedback at http://connect.microsoft.com/IE -- but you'll need to log in with a Windows Live ID, and I'm not sure how you get one of those.



Other than that ... well, let's just hope that not too many people trigger the bug!






share|improve this answer
























  • wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

    – Aaike
    Mar 31 '12 at 13:40
















1














I was able to reproduce this behavior using two versions of IE:




  • IE 8 (version 8.0.7601.1754).

  • IE 9 (version 9.0.8112.16421, update version 9.0.4)


Clicking the title bar of the window toggled the checkbox, in addition to being able to click anywhere in the page. I found that it releases the window as soon as you press space again.



This looks like a bug in how IE handles focus. Since the window releases as soon as space is pressed again, I thought maybe it would be possible to write JavaScript to simulate a space bar press. Here's the script I worked out based on your test case:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="none">
<meta name="viewport" content="width=960">

<title>checkbox test</title>

</head>
<body>

<h1>Checkbox test</h1>

<input name="item1" id="item1" value="1" checked="checked" type="checkbox" />
<label for="item1">item1</label><br />

<input name="item2" id="item2" value="2" checked="checked" type="checkbox" />
<label for="item2">item2</label><br />

<input name="item3" id="item3" value="3" type="checkbox" />
<label for="item3">item3</label>

<script>
<!--
var spaceDown = false;
var tabDown = false;

window.onload = function(){
document.onkeydown = function(){
if(event.keyCode == 32){ spaceDown = true; }
if(event.keyCode == 9){ tabDown = true; }
}

document.onkeyup = function(){
if(spaceDown && tabDown){
console.log("Danger, Will Fobinson!");
console.log("Simulating space bar press ...");
var e = document.createEventObject();
e.altKey = false;
e.ctrlKey = false;
e.shiftKey = false;
e.keyCode = 32;

document.fireEvent("onkeydown", e);
document.fireEvent("onkeyup", e);
}

if(event.keyCode == 32){ spaceDown = false; }
if(event.keyCode == 9){ tabDown = false; }
}
}



// -->
</script>

</body>
</html>


Unfortunately, when you trigger the danger condition in IE 8 (focus a checkbox, space down, tab down), it increases IE's CPU usage a LOT and pops up a little dialog box saying:



Dialog box saying: 'stack overflow at line: 0'



So that's not very helpful.



And as you discovered, the focus() and blur() methods don't seem to do anything helpful in this instance either.



So basically, I think your only option is to report it as a bug to the IE team, and hope they fix it. I'm not sure how you do that actually. In theory you can submit IE feedback at http://connect.microsoft.com/IE -- but you'll need to log in with a Windows Live ID, and I'm not sure how you get one of those.



Other than that ... well, let's just hope that not too many people trigger the bug!






share|improve this answer
























  • wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

    – Aaike
    Mar 31 '12 at 13:40














1












1








1







I was able to reproduce this behavior using two versions of IE:




  • IE 8 (version 8.0.7601.1754).

  • IE 9 (version 9.0.8112.16421, update version 9.0.4)


Clicking the title bar of the window toggled the checkbox, in addition to being able to click anywhere in the page. I found that it releases the window as soon as you press space again.



This looks like a bug in how IE handles focus. Since the window releases as soon as space is pressed again, I thought maybe it would be possible to write JavaScript to simulate a space bar press. Here's the script I worked out based on your test case:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="none">
<meta name="viewport" content="width=960">

<title>checkbox test</title>

</head>
<body>

<h1>Checkbox test</h1>

<input name="item1" id="item1" value="1" checked="checked" type="checkbox" />
<label for="item1">item1</label><br />

<input name="item2" id="item2" value="2" checked="checked" type="checkbox" />
<label for="item2">item2</label><br />

<input name="item3" id="item3" value="3" type="checkbox" />
<label for="item3">item3</label>

<script>
<!--
var spaceDown = false;
var tabDown = false;

window.onload = function(){
document.onkeydown = function(){
if(event.keyCode == 32){ spaceDown = true; }
if(event.keyCode == 9){ tabDown = true; }
}

document.onkeyup = function(){
if(spaceDown && tabDown){
console.log("Danger, Will Fobinson!");
console.log("Simulating space bar press ...");
var e = document.createEventObject();
e.altKey = false;
e.ctrlKey = false;
e.shiftKey = false;
e.keyCode = 32;

document.fireEvent("onkeydown", e);
document.fireEvent("onkeyup", e);
}

if(event.keyCode == 32){ spaceDown = false; }
if(event.keyCode == 9){ tabDown = false; }
}
}



// -->
</script>

</body>
</html>


Unfortunately, when you trigger the danger condition in IE 8 (focus a checkbox, space down, tab down), it increases IE's CPU usage a LOT and pops up a little dialog box saying:



Dialog box saying: 'stack overflow at line: 0'



So that's not very helpful.



And as you discovered, the focus() and blur() methods don't seem to do anything helpful in this instance either.



So basically, I think your only option is to report it as a bug to the IE team, and hope they fix it. I'm not sure how you do that actually. In theory you can submit IE feedback at http://connect.microsoft.com/IE -- but you'll need to log in with a Windows Live ID, and I'm not sure how you get one of those.



Other than that ... well, let's just hope that not too many people trigger the bug!






share|improve this answer













I was able to reproduce this behavior using two versions of IE:




  • IE 8 (version 8.0.7601.1754).

  • IE 9 (version 9.0.8112.16421, update version 9.0.4)


Clicking the title bar of the window toggled the checkbox, in addition to being able to click anywhere in the page. I found that it releases the window as soon as you press space again.



This looks like a bug in how IE handles focus. Since the window releases as soon as space is pressed again, I thought maybe it would be possible to write JavaScript to simulate a space bar press. Here's the script I worked out based on your test case:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="none">
<meta name="viewport" content="width=960">

<title>checkbox test</title>

</head>
<body>

<h1>Checkbox test</h1>

<input name="item1" id="item1" value="1" checked="checked" type="checkbox" />
<label for="item1">item1</label><br />

<input name="item2" id="item2" value="2" checked="checked" type="checkbox" />
<label for="item2">item2</label><br />

<input name="item3" id="item3" value="3" type="checkbox" />
<label for="item3">item3</label>

<script>
<!--
var spaceDown = false;
var tabDown = false;

window.onload = function(){
document.onkeydown = function(){
if(event.keyCode == 32){ spaceDown = true; }
if(event.keyCode == 9){ tabDown = true; }
}

document.onkeyup = function(){
if(spaceDown && tabDown){
console.log("Danger, Will Fobinson!");
console.log("Simulating space bar press ...");
var e = document.createEventObject();
e.altKey = false;
e.ctrlKey = false;
e.shiftKey = false;
e.keyCode = 32;

document.fireEvent("onkeydown", e);
document.fireEvent("onkeyup", e);
}

if(event.keyCode == 32){ spaceDown = false; }
if(event.keyCode == 9){ tabDown = false; }
}
}



// -->
</script>

</body>
</html>


Unfortunately, when you trigger the danger condition in IE 8 (focus a checkbox, space down, tab down), it increases IE's CPU usage a LOT and pops up a little dialog box saying:



Dialog box saying: 'stack overflow at line: 0'



So that's not very helpful.



And as you discovered, the focus() and blur() methods don't seem to do anything helpful in this instance either.



So basically, I think your only option is to report it as a bug to the IE team, and hope they fix it. I'm not sure how you do that actually. In theory you can submit IE feedback at http://connect.microsoft.com/IE -- but you'll need to log in with a Windows Live ID, and I'm not sure how you get one of those.



Other than that ... well, let's just hope that not too many people trigger the bug!







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 21 '12 at 15:53









Will MartinWill Martin

3,01311734




3,01311734













  • wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

    – Aaike
    Mar 31 '12 at 13:40



















  • wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

    – Aaike
    Mar 31 '12 at 13:40

















wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

– Aaike
Mar 31 '12 at 13:40





wow thanks :) im just glad somebody took the time to look at it and post an answer :) i will accept it as a correct answer because it is an IE bug. last time i tried to report it as a bug to the IE team but i couldn't find any bug reporting system or something. ill try your link and try reporting it again, i believe a windows Live id is same as a MSN or hotmail account Thanks again !

– Aaike
Mar 31 '12 at 13:40


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f9320951%2finternet-explorer-hangs-when-holding-in-space-and-tabbing-through-a-form%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini