Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/154420
Change subject: Publish when Control+S pressed on Special:CX ...................................................................... Publish when Control+S pressed on Special:CX Observed that users use this short cut in between translating. Change-Id: I5ba48b33e07951fea3dd3a1b2879d7c109aed0b6 --- M modules/translation/ext.cx.publish.js 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/20/154420/1 diff --git a/modules/translation/ext.cx.publish.js b/modules/translation/ext.cx.publish.js index 38bab68..d4a8aa7 100644 --- a/modules/translation/ext.cx.publish.js +++ b/modules/translation/ext.cx.publish.js @@ -128,5 +128,13 @@ $( function () { mw.hook( 'mw.cx.publish' ).add( $.proxy( publish, this ) ); + // Publish when CTRL+S is pressed. + $( document ).on( 'keydown', function ( e ) { + if ( e.ctrlKey && ( e.which === 83 ) ) { + e.preventDefault(); + mw.hook( 'mw.cx.publish' ).fire(); + return false; + } + } ); } ); }( jQuery, mediaWiki ) ); -- To view, visit https://gerrit.wikimedia.org/r/154420 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5ba48b33e07951fea3dd3a1b2879d7c109aed0b6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits