Version: 4.2.2 (using KDE 4.2.2) OS: MS Windows Installed from: MS Windows W3C Documentation: mousedown event is cancelable Konqueror: mousedown event is not cancelable Run attachment.
Created attachment 32984 [details] source
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-initMouseEvent
Most likely (can't test right now): --- khtmlview.cpp (revision 956244) +++ khtmlview.cpp (working copy) @@ -3756,7 +3756,7 @@ } me->deref(); - if (eventId == EventImpl::MOUSEDOWN_EVENT) { + if (eventId == EventImpl::MOUSEDOWN_EVENT && !me->defaultPrevented()) { // Focus should be shifted on mouse down, not on a click. -dwh // Blur current focus node when a link/button is clicked; this // is expected by some sites that rely on onChange handlers running
SVN commit 958236 by orlovich: Make sure we don't transfer focus on a cancelled mousedown BUG:190255 BUG:190142 M +1 -1 khtmlview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=958236
SVN commit 958239 by orlovich: automatically merged revision 958236: Make sure we don't transfer focus on a cancelled mousedown BUG:190255 BUG:190142 M +1 -1 khtmlview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=958239