[Webkit-unassigned] [Bug 23145] New: retain focus after unintentional onblur to allow directional pad navigation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 6 12:46:51 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=23145
Summary: retain focus after unintentional onblur to allow
directional pad navigation
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: caryclark at google.com
Android uses a directional pad to move focus spatially, and interprets the
directional pad center button as a mouse click on the center of the current
focus.
http://tools.arantius.com/stopwatch
includes this:
<div id='main'>
<button type='button' onclick='ss()' onfocus='this.blur()'>Start /
Stop</button>
<input type='text' id='disp' />
<button type='button' onclick='r()'
onfocus='this.blur()'>Reset</button>
</div>
So, when using a directional keypad to gain focus on the Start or Reset button,
the onfocus attribute removes the focus. This patch ignores the part of blur
which clears the document focus if the element does not have an onBlur
attribute.
I'm not particularly proud of this fix, but don't have an alternative. What can
I do to improve on this patch?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list