mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
ce.MWReferenceListNode: Only open dialog on unmodified left clicks
Change-Id: I06f6e2cc89f595e6dcc931b78c908ff2270e4629
This commit is contained in:
parent
5369076028
commit
d368f45c17
|
@ -268,7 +268,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