mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Followup to 39fdb135f8
: not everyone has a Mac, so check e.ctrlKey too
Bug: 49993 Change-Id: I5245ab19ae16b79d2c562c05b94649a58e04a4fd
This commit is contained in:
parent
eee17a8f09
commit
cfc65ae9e5
|
@ -559,7 +559,7 @@ ve.init.mw.ViewPageTarget.prototype.onEditTabClick = function ( e ) {
|
|||
// Only do our handling if no keys are pressed, mouse button is 1
|
||||
// (e.g. not middle click or right click) and no modifier keys
|
||||
// (e.g. cmd-click to open in new tab).
|
||||
if ( ( e.which && e.which !== 1 ) || e.shiftKey || e.altKey || e.metaKey ) {
|
||||
if ( ( e.which && e.which !== 1 ) || e.shiftKey || e.altKey || e.ctrlKey || e.metaKey ) {
|
||||
return;
|
||||
}
|
||||
this.logEvent( 'Edit', { action: 'edit-link-click' } );
|
||||
|
@ -575,7 +575,7 @@ ve.init.mw.ViewPageTarget.prototype.onEditTabClick = function ( e ) {
|
|||
* @param {jQuery.Event} e Mouse click event
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.onEditSectionLinkClick = function ( e ) {
|
||||
if ( ( e.which && e.which !== 1 ) || e.shiftKey || e.altKey || e.metaKey ) {
|
||||
if ( ( e.which && e.which !== 1 ) || e.shiftKey || e.altKey || e.ctrlKey || e.metaKey ) {
|
||||
return;
|
||||
}
|
||||
this.logEvent( 'Edit', { action: 'section-edit-link-click' } );
|
||||
|
@ -592,7 +592,7 @@ ve.init.mw.ViewPageTarget.prototype.onEditSectionLinkClick = function ( e ) {
|
|||
* @param {jQuery.Event} e Mouse click event
|
||||
*/
|
||||
ve.init.mw.ViewPageTarget.prototype.onViewTabClick = function ( e ) {
|
||||
if ( ( e.which && e.which !== 1 ) || e.shiftKey || e.altKey || e.metaKey ) {
|
||||
if ( ( e.which && e.which !== 1 ) || e.shiftKey || e.altKey || e.ctrlKey || e.metaKey ) {
|
||||
return;
|
||||
}
|
||||
if ( this.active ) {
|
||||
|
|
Loading…
Reference in a new issue