Bug 243942

Summary: Middle click paste onto page does not use default web shortcut
Product: [Frameworks and Libraries] kwebkitpart Reporter: Amand Tihon <allergy>
Component: generalAssignee: webkit-devel
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Amand Tihon 2010-07-08 13:14:59 UTC
Version:           unspecified (using KDE 4.4.4) 
OS:                Linux

In Konqueror, I have my default web shortcut set to Google search. When I paste arbitrary words anywhere on a page rendered with KHTML, the default sortcut is called.

When using kwebkitpart, only URLs can be pasted onto the page. Arbitrary strings are ignored. 



Reproducible: Always

Steps to Reproduce:
Make sure you have a default web shortcut set in Konqueror (ie, Google search).
Select one or more words with the mouse. Paste the selection using the middle mouse button onto an inactive space of any webkit rendered page in Konqueror, or onto the about:blank page.

Actual Results:  
Nothing happens.

Expected Results:  
The default web shortcut should be called with the content of the clipboard, as happens with KHTML rendering, or when pasting onto the tab itself.
Comment 1 Dawit Alemayehu 2010-07-15 17:09:05 UTC
SVN commit 1150283 by adawit:

Allow Middle click paste on KWebView to use default web shortcut when
the content in the selection clipboard is not a valid URL.

BUG:243942


 M  +11 -4     kwebview_p.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1150283