Skip to content

Commit

Permalink
Add default keyUp handler to base-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GoCardsCai committed Jun 24, 2020
1 parent 49820a1 commit cb5e382
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/react-map-gl-draw/src/edit-modes/base-mode.ts
Expand Up @@ -36,6 +36,8 @@ export default class BaseMode implements EditMode<FeatureCollection, GuideFeatur

handleStopDragging(event: StopDraggingEvent, props: ModeProps<FeatureCollection>) {}

handleKeyUp(event: KeyboardEvent, props: ModeProps<FeatureCollection>): void {}

getGuides(props: ModeProps<FeatureCollection>): GuideFeatureCollection | null | undefined {
return null;
}
Expand Down

0 comments on commit cb5e382

Please sign in to comment.