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) {
149149 var button = document . createElement ( 'button' ) ;
150150
151151 button . setAttribute ( 'type' , 'button' ) ;
152- button . setAttribute ( 'tabindex' , '0' ) ;
153152 button . setAttribute ( 'rel' , 'tooltip' ) ;
154153 button . className = 'modebar-btn' ;
155-
154+
156155 var title = config . title ;
157156 if ( title === undefined ) title = config . name ;
158157 // for localization: allow title to be a callable that takes gd as arg
@@ -181,15 +180,6 @@ proto.createButton = function(config) {
181180 // only needed for 'hoverClosestGeo' which does not call relayout
182181 _this . updateActiveButton ( ev . currentTarget ) ;
183182 } ) ;
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- } ) ;
193183 }
194184
195185 button . setAttribute ( 'data-toggle' , config . toggle || false ) ;
You can’t perform that action at this time.
0 commit comments