mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-30 17:04:14 +00:00
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:
parent
eb2b184c47
commit
e325bc2e13
|
@ -158,8 +158,11 @@
|
||||||
lang: $textbox1.attr( 'lang' )
|
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
|
// T194102: UniversalLanguageSelector integration is buggy, disabling it completely
|
||||||
$( codeMirror.getInputField() ).addClass( 'noime' );
|
.addClass( 'noime' );
|
||||||
|
|
||||||
// set the height of the textarea
|
// set the height of the textarea
|
||||||
codeMirror.setSize( null, $textbox1.height() );
|
codeMirror.setSize( null, $textbox1.height() );
|
||||||
|
|
Loading…
Reference in a new issue