calesce / redux-slider-monitor

A custom monitor for Redux DevTools to replay recorded Redux actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keyboardEnabled property doens't work

gabrielmicko opened this issue · comments

I tired to not add "keyboardEnabled" property to not listen for keyboard events, but it doesn't help. CTRL + J still replays the actions.

SlideMonitor.js

constructor(props) {
    super(props);

    if (typeof window !== 'undefined') {
      window.addEventListener('keydown', this.handleKeyPress);
    }

Needs a condition If there is a prop "keyboardEnabled", add the listener.