Skip to content

Commit 494897e

Browse files
committed
Set tabIndex, not tabindex
1 parent 9568b54 commit 494897e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/codemirror.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var CodeMirror = (function() {
2424
'<div style="overflow: hidden; position: relative; width: 3px; height: 0px;">' + // Wraps and hides input textarea
2525
'<textarea style="position: absolute; padding: 0; width: 1px;" wrap="off" ' +
2626
'autocorrect="off" autocapitalize="off"></textarea></div>' +
27-
'<div class="CodeMirror-scroll">' +
27+
'<div class="CodeMirror-scroll" tabindex="-1">' +
2828
'<div style="position: relative">' + // Set to the height of the text, causes scrolling
2929
'<div style="position: relative">' + // Moved around its parent to cover visible view
3030
'<div class="CodeMirror-gutter"><div class="CodeMirror-gutter-text"></div></div>' +
@@ -45,7 +45,7 @@ var CodeMirror = (function() {
4545
// Needed to hide big blue blinking cursor on Mobile Safari
4646
if (/AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent)) input.style.width = "0px";
4747
if (!webkit) lineSpace.draggable = true;
48-
if (options.tabindex != null) input.tabindex = options.tabindex;
48+
if (options.tabindex != null) input.tabIndex = options.tabindex;
4949
if (!options.gutter && !options.lineNumbers) gutter.style.display = "none";
5050

5151
// Check for problem with IE innerHTML not working when we have a

0 commit comments

Comments
 (0)