When h3. What The Schema tab has a shortcut feature for saving the editor (textarea) schema. Instead of clicking the button "Save" a user can simply press *control + s* or *cmd + s*. The shortcut however only works when {{Toolbar}} is focused, pressing ctrl+C should trigger not the {{Editor}}.
h3. Why The shortcut is a save, nice feature UX-wise but it only works after losing its focus (clicking outside of at the editor moment is incomplete.
h3. How The shortcut feature is provided by [react-keydown|https://github.com/glortho/react-keydown/] and defined in [{{SchemaContainer.js}}|https://github.com/aerogear/data-sync-ui/blob/master/ui/components/schema/SchemaContainer.js]. The keyevent thrown when in Editor or StructureView is not going up enough, so perhaps the SchemaContainer is not the best place to put the {{@keydown}} annotation. Mind that the Editor is not only use for instance) the Schema hence the shortcut may not always be suitable . |
|