Bug 120511

Summary: tab-key navigation broken for <button>
Product: [Applications] konqueror Reporter: Yan Seiner <yan>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 3.3.2   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Yan Seiner 2006-01-20 16:37:21 UTC
Version:           3.3.2 (using KDE KDE 3.5.0)
Installed from:    Debian stable Packages
Compiler:          see note belo - both x86 .deb release and my own xtools for arm based on gcc 3.4.4 / glibc 2.3.2 This is both in the Debian Stable for x86 (v. 3.3.2) and latest konq/e snapshot
OS:                Linux

Konqueror (both /e and 3.3.2, the one installed on this box) appear to
ignore buttons when you use the tab key to navigate....

I've tried tabindex and it is ignored for <button> fields.  Focus just
skips over the button and moves on to the next <input> field.  Firefox
works as you would expect, focusing on each element in turn, including
buttons....

Here's the minimal page I am using to test assorted functionality

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript">
function startCalc(){
  interval = setInterval("calc()",1);
};
function calc(){
    one = document.autoSumForm.firstBox.value;
    two = document.autoSumForm.secondBox.value;
    document.autoSumForm.thirdBox.value = (one * 1) + (two * 1);
};
function stopCalc(){
  clearInterval(interval);
  };
</script>
</head>
<body>
<form name="autoSumForm">
<input tabindex="1" type=text name="firstBox" value="" 
onclick="JavaScript:startCalc()" onblur="javascript:stopCalc();"> +
<input tabindex="2" type=text name="secondBox" value="" 
onfocus="javascript:startCalc();" onblur="javascript:stopCalc();"> =
<button tabindex="3" type=button>xys</button>
<input tabindex="4" type=text name="thirdBox">
</form>
</body>
</html>
Comment 1 Maksim Orlovich 2006-01-20 16:46:31 UTC
/me gets a sense of Deja Vu

*** This bug has been marked as a duplicate of 120503 ***