From f11634e6d339ecc4156edc150e2abe2986e88109 Mon Sep 17 00:00:00 2001 From: Amire80 Date: Tue, 13 Mar 2018 14:34:11 +0200 Subject: [PATCH] Pass the event object when calling the click handler This will allow distinguishing Click and Ctrl/Command-Click. See downstream bug https://phabricator.wikimedia.org/T189582 --- src/jquery.uls.lcd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index 2a737b5..1664c75 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -408,8 +408,8 @@ var lcd = this; if ( this.options.clickhandler ) { - this.$element.on( 'click', '.row li', function () { - lcd.options.clickhandler.call( this, $( this ).data( 'code' ) ); + this.$element.on( 'click', '.row li', function ( event ) { + lcd.options.clickhandler.call( this, $( this ).data( 'code' ), event ); } ); } }