Skip to content

Commit

Permalink
flow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey committed Jun 20, 2018
1 parent 8d05cb8 commit 4edf6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default class Marker extends Evented {
* @returns {Marker} `this`
*/
setPopup(popup: ?Popup) {
const keypressListener = (e: Event) => {
const keypressListener = (e: KeyboardEvent) => {
const code = e.charCode || e.keyCode;

if ((code === 32) || (code === 13)) { // space or enter
Expand Down

0 comments on commit 4edf6ea

Please sign in to comment.