How to use the react-keybind.withShortcut function in react-keybind

To help you get started, we’ve selected a few react-keybind examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pyroscope-io / pyroscope / webapp / javascript / components / Sidebar.jsx View on Github external
<div>
        
      
    </div>
  );
}

export default connect((x) =&gt; x, { fetchNames })(withShortcut(Sidebar));
github pyroscope-io / pyroscope / webapp / javascript / components / ShortcutsModal.jsx View on Github external
<tt>{x.keys}</tt>
                  <span>{x.description}</span>
                
              })}
            
          
        
      )}
    ;
  }
}

export default connect(
  (x) =&gt; x,
  { }
)(withShortcut(ShortcutsModal));
github pyroscope-io / pyroscope / webapp / javascript / components / FlameGraphRenderer.jsx View on Github external
renderURL: buildRenderURL(state),
  leftRenderURL: buildRenderURL(state, state.leftFrom, state.leftUntil),
  rightRenderURL: buildRenderURL(state, state.rightFrom, state.rightUntil),
});

const mapDispatchToProps = (dispatch) => ({
  actions: bindActionCreators(
    { },
    dispatch
  ),
});

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(withShortcut(FlameGraphRenderer));
github pyroscope-io / pyroscope / webapp / javascript / components / ComparisonFlameGraphRenderer.jsx View on Github external
});

const mapDispatchToProps = (dispatch) => ({
  actions: bindActionCreators(
    {
      fetchJSON,
      receiveJSON,
    },
    dispatch
  ),
});

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(withShortcut(ComparisonFlameGraphRenderer));

react-keybind

Global keybindings for your React application

MIT
Latest version published 6 months ago

Package Health Score

62 / 100
Full package analysis

Popular react-keybind functions