scpl-editor icon indicating copy to clipboard operation
scpl-editor copied to clipboard

Use ace keybindings instead of onKeyDown

Open pfgithub opened this issue 6 years ago • 0 comments

    <AceEditor
      ref="aceEditor"
      mode="sql"     // Default value since this props must be set.
      theme="chrome" // Default value since this props must be set.
      commands={[{   // commands is array of key bindings.
        name: 'removeline', //name for the key binding.
        bindKey: {win: 'Ctrl-X', mac: 'Command-X'}, //key combination used for the command.
        exec: 'removeline'  // name of the command to rebind
      }]}
    />

pfgithub avatar May 21 '19 15:05 pfgithub