handleKeyDown = ({ ctrlKey, keyCode, metaKey, altKey }) => {
// We submit the status on control/meta + enter.
if (keyCode === 13 && (ctrlKey || metaKey)) {
- handleSubmit();
+ this.handleSubmit();
}
// Submit the status with secondary visibility on alt + enter.
if (keyCode === 13 && altKey) {
- handleSecondarySubmit();
+ this.handleSecondarySubmit();
}
}
// Handles the secondary submit button.
handleSecondarySubmit = () => {
- const { handleSubmit } = this.handlers;
const {
onChangeVisibility,
sideArm,
if (sideArm !== 'none' && onChangeVisibility) {
onChangeVisibility(sideArm);
}
- handleSubmit();
+ this.handleSubmit();
}
// Selects a suggestion from the autofill.