mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "mw.ViewPageTarget: Check elementsThatHadOurAccessKey before accessing"
This commit is contained in:
commit
c22ddb3463
|
@ -226,7 +226,7 @@ ve.init.mw.ViewPageTarget.prototype.deactivate = function ( override ) {
|
|||
) {
|
||||
this.deactivating = true;
|
||||
// User interface changes
|
||||
if ( ve.msg( 'accesskey-save' ) !== '-' && ve.msg( 'accesskey-save' ) !== '' ) {
|
||||
if ( this.elementsThatHadOurAccessKey ) {
|
||||
this.elementsThatHadOurAccessKey.attr( 'accesskey', ve.msg( 'accesskey-save' ) );
|
||||
}
|
||||
this.restorePage();
|
||||
|
|
Loading…
Reference in a new issue