fixes bug 70519 "Select All (+ Copy) does not clobber the X primary selection"
patch=jwbaker@acm.org r=akkana sr=kin git-svn-id: svn://10.0.0.236/trunk@106818 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -131,8 +131,10 @@ nsAutoCopyService::NotifySelectionChanged(nsIDOMDocument *aDoc, nsISelection *aS
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
if (!(aReason & nsISelectionListener::MOUSEUP_REASON))
|
||||
return NS_OK; //dont care if we are still dragging. or if its not from a mouseup
|
||||
if (!(aReason & nsISelectionListener::MOUSEUP_REASON ||
|
||||
aReason & nsISelectionListener::SELECTALL_REASON ||
|
||||
aReason & nsISelectionListener::KEYPRESS_REASON))
|
||||
return NS_OK; //dont care if we are still dragging
|
||||
PRBool collapsed;
|
||||
if (!aDoc || !aSel || NS_FAILED(aSel->GetIsCollapsed(&collapsed)) || collapsed) {
|
||||
#ifdef DEBUG_CLIPBOARD
|
||||
|
||||
Reference in New Issue
Block a user