Merge "ce.MWReferenceListNode: Only open dialog on unmodified left clicks"

This commit is contained in:
jenkins-bot 2024-03-28 16:14:32 +00:00 committed by Gerrit Code Review
commit f4c690fa1a

View file

@ -261,7 +261,7 @@ ve.ce.MWReferencesListNode.prototype.update = function () {
if ( this.getRoot() ) {
const surface = this.getRoot().getSurface().getSurface();
$li.on( 'mousedown', function ( e ) {
if ( modelNode && modelNode.length ) {
if ( ve.isUnmodifiedLeftClick( e ) && modelNode && modelNode.length ) {
const items = ve.ui.contextItemFactory.getRelatedItems( [ firstNode ] )
.filter( ( item ) => item.name !== 'mobileActions' );
if ( items.length ) {