Add accesskey to CodeMirror input field

Add the same accesskey that the normal <textarea> uses.

Bug: T259347
Change-Id: I67c3b9d374203a5dabc29cc8c61fa76e2b64cb5a
This commit is contained in:
Jon Harald Søby 2020-07-31 15:39:05 +02:00 committed by Thiemo Kreuz
parent eb2b184c47
commit e325bc2e13

View file

@ -158,8 +158,11 @@
lang: $textbox1.attr( 'lang' )
} );
$( codeMirror.getInputField() )
// T259347: Use accesskey of the original textbox
.attr( 'accesskey', $textbox1.attr( 'accesskey' ) )
// T194102: UniversalLanguageSelector integration is buggy, disabling it completely
$( codeMirror.getInputField() ).addClass( 'noime' );
.addClass( 'noime' );
// set the height of the textarea
codeMirror.setSize( null, $textbox1.height() );