File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -149,10 +149,9 @@ proto.createButton = function(config) {
149
149
var button = document . createElement ( 'button' ) ;
150
150
151
151
button . setAttribute ( 'type' , 'button' ) ;
152
- button . setAttribute ( 'tabindex' , '0' ) ;
153
152
button . setAttribute ( 'rel' , 'tooltip' ) ;
154
153
button . className = 'modebar-btn' ;
155
-
154
+
156
155
var title = config . title ;
157
156
if ( title === undefined ) title = config . name ;
158
157
// for localization: allow title to be a callable that takes gd as arg
@@ -181,15 +180,6 @@ proto.createButton = function(config) {
181
180
// only needed for 'hoverClosestGeo' which does not call relayout
182
181
_this . updateActiveButton ( ev . currentTarget ) ;
183
182
} ) ;
184
- button . addEventListener ( 'keydown' , function ( e ) {
185
- if ( e . key === 'Enter' || e . key === ' ' ) {
186
- const activeButton = e . target . closest ( '.modebar-btn' ) ;
187
- if ( activeButton ) {
188
- activeButton . click ( ) ;
189
- e . preventDefault ( ) ;
190
- }
191
- }
192
- } ) ;
193
183
}
194
184
195
185
button . setAttribute ( 'data-toggle' , config . toggle || false ) ;
You can’t perform that action at this time.
0 commit comments