Home Reference Source
import KeyboardShortcut from 'myr/src/components/editor/KeyboardShortcut.js'
public class | source

KeyboardShortcut

Extends:

react~React.Component → KeyboardShortcut

React components create the button with KeyboardShortcut window

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

handleClick(event: object): *

Update the state when the button is clicked

public

handleClose(event: object): *

Update the state when the window is closed

public

shortcutHelper(data: array): *

Helper function to convert the shrotcuts to an equivalent DOM elements

public

state: {"open": *, "anchorEl": *}

Method Summary

Public Methods
public

render(): *

Creates the keyboard shortcut in the DOM

Public Constructors

public constructor() source

Public Members

public handleClick(event: object): * source

Update the state when the button is clicked

public handleClose(event: object): * source

Update the state when the window is closed

public shortcutHelper(data: array): * source

Helper function to convert the shrotcuts to an equivalent DOM elements

public state: {"open": *, "anchorEl": *} source

Public Methods

public render(): * source

Creates the keyboard shortcut in the DOM

Return:

*