Skip to content

Commit a748038

Browse files
committed
Set tabindex=-1 on scrollbar elements
To prevent them from showing up in the tab order on Firefox Closes #5391
1 parent 2893e58 commit a748038

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/display/scrollbars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class NativeScrollbars {
3232
this.cm = cm
3333
let vert = this.vert = elt("div", [elt("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar")
3434
let horiz = this.horiz = elt("div", [elt("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar")
35+
vert.tabIndex = horiz.tabIndex = -1
3536
place(vert); place(horiz)
3637

3738
on(vert, "scroll", () => {

0 commit comments

Comments
 (0)