mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Merge "ce.MWReferenceListNode: Only open dialog on unmodified left clicks"
This commit is contained in:
commit
f4c690fa1a
|
@ -261,7 +261,7 @@ ve.ce.MWReferencesListNode.prototype.update = function () {
|
||||||
if ( this.getRoot() ) {
|
if ( this.getRoot() ) {
|
||||||
const surface = this.getRoot().getSurface().getSurface();
|
const surface = this.getRoot().getSurface().getSurface();
|
||||||
$li.on( 'mousedown', function ( e ) {
|
$li.on( 'mousedown', function ( e ) {
|
||||||
if ( modelNode && modelNode.length ) {
|
if ( ve.isUnmodifiedLeftClick( e ) && modelNode && modelNode.length ) {
|
||||||
const items = ve.ui.contextItemFactory.getRelatedItems( [ firstNode ] )
|
const items = ve.ui.contextItemFactory.getRelatedItems( [ firstNode ] )
|
||||||
.filter( ( item ) => item.name !== 'mobileActions' );
|
.filter( ( item ) => item.name !== 'mobileActions' );
|
||||||
if ( items.length ) {
|
if ( items.length ) {
|
||||||
|
|
Loading…
Reference in a new issue