if ( action != nsIDragService::DRAGDROP_ACTION_NONE ) dragSession->SetDragAction ( action );
dragSession->SetDragAction ( action );
SetDragActionBasedOnModifiers ( nsIDragService* inDragService, short inModifiers ) {	nsCOMPtr<nsIDragSession> dragSession;	inDragService->GetCurrentSession ( getter_AddRefs(dragSession) );	if ( dragSession ) {		PRUint32 action = nsIDragService::DRAGDROP_ACTION_NONE;				// force copy = option, alias = cmd-option		if ( inModifiers & optionKey ) {			if ( inModifiers & cmdKey )				action = nsIDragService::DRAGDROP_ACTION_LINK;			else				action = nsIDragService::DRAGDROP_ACTION_COPY;		}		// I think we only need to set this when it's not "none"		if ( action != nsIDragService::DRAGDROP_ACTION_NONE )			dragSession->SetDragAction ( action );			}} // SetDragActionBasedOnModifiers