| Summary: | Middle clicking outside of a focused form textbox still pastes (and strats scrolling) | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Sean Lynch <techniq35> |
| Component: | khtml forms | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | stefan.nikolaus |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Testcase | ||
|
Description
Sean Lynch
2005-01-23 23:24:47 UTC
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 |