Version: 3.3.91 (using KDE 3.3.91 (beta1), compiled sources) Compiler: gcc version 3.3.3 (SuSE Linux) OS: Linux (i686) release 2.6.9-ck3 If you have text in your 'mouse select' clipboard and have a text form field selected (as to type in it), then middle click outside of it to start mouse scrolling, the text is still pasted into the text field and scrolling is activated. This is not the case though with textareas (which in my opinion is the correct implementation).
Created attachment 9239 [details] Testcase
CVS commit by nikolaus: Avoid pasting text in a focussed text field by middle clicking outside the field. BUG: 97749 M +2 -1 khtmlview.cpp 1.689 --- kdelibs/khtml/khtmlview.cpp #1.688:1.689 @@ -1233,5 +1233,6 @@ void KHTMLView::viewportMouseReleaseEven DOM::NodeImpl* fn = m_part->xmlDocImpl()->focusNode(); if (fn && fn != mev.innerNode.handle() && - fn->renderer() && fn->renderer()->isWidget()) { + fn->renderer() && fn->renderer()->isWidget() && + _mouse->button() != MidButton) { forwardPeripheralEvent(static_cast<khtml::RenderWidget*>(fn->renderer()), _mouse, xm, ym); }
Thank you