Skip to content

Commit 8bf53e8

Browse files
committed
Focus on tab
1 parent 1111728 commit 8bf53e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mapml/features/feature.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ export var Feature = L.Path.extend({
4848
}
4949

5050
this.isClosed = this._isClosed();
51+
this.on("keyup", this._focusOnTab, this);
52+
},
53+
54+
_focusOnTab: function (e){
55+
if(e.originalEvent.keyCode === 9){
56+
this._map.panTo(e.target.getCenter());
57+
}
5158
},
5259

5360
/**

0 commit comments

Comments
 (0)