This is a starter issue, highly inspired by the great job of the folks at Hoodie. π
πππππ» Hacktoberfest: Trick or Treat!
If you havenβt yet, sign up for Hacktoberfest to earn an exclusive T-Shirt.
We are sure you can learn a neat trick or two in the process on how to hack & customize Telescope Nova! π
π€ What you will need to know
Meteor, React.
π― The Goal
What about being able to submit a post or a comment after typing with a standard shortcut: Ctrl + Enter (or Cmd + Enter on Mac) ? π
Forms in Nova work thanks to NovaForm (in nova:forms package), which uses Formsy under the hood.
To enable this feature (proposed in #850), we would need an event handler on NovaForm component that calls its method submitForm if the right keys are pressed.
No changes are needed on submitForm: it uses directly the data of Formsy, that can be retrieved with this.refs.form.getModel() (see Formsy API docs).
This is a starter issue, highly inspired by the great job of the folks at Hoodie. π
πππππ» Hacktoberfest: Trick or Treat!
If you havenβt yet, sign up for Hacktoberfest to earn an exclusive T-Shirt.
We are sure you can learn a neat trick or two in the process on how to hack & customize Telescope Nova! π
π€ What you will need to know
Meteor, React.
π― The Goal
What about being able to submit a post or a comment after typing with a standard shortcut: Ctrl + Enter (or Cmd + Enter on Mac) ? π
Forms in Nova work thanks to
NovaForm
(innova:forms
package), which uses Formsy under the hood.To enable this feature (proposed in #850), we would need an event handler on
NovaForm
component that calls its methodsubmitForm
if the right keys are pressed.No changes are needed on
submitForm
: it uses directly the data of Formsy, that can be retrieved withthis.refs.form.getModel()
(see Formsy API docs).Useful link : React Events
π Step by Step
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub.
devel
branch.NovaForm
that listen for keys pressed.submitForm
with the form's data.devel
branch, mentioning this issue.Ping us here, in the Telescope Slack room or on Twitter if you have any questions π