Homec4science

Make control + enter submit forms if a textarea is focused

Authored by epriestley <git@epriestley.com> on Jan 28 2013, 23:11.

Description

Make control + enter submit forms if a textarea is focused

Summary:
This is straightforward, except that form.submit() does not call onsubmit handlers. Create a didSyntheticSubmit event and have everything which listens for form submits listen for it too.

Fixes T704.

Test Plan: Hit control + enter in inline comments, main commetns, Pholio, conpherence. Verified it triggered appropriate JS (workflow / special behaviors).

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T704

Differential Revision: https://secure.phabricator.com/D4704

Details

Committed
epriestley <git@epriestley.com>Jan 28 2013, 23:11
Pushed
aubortJan 31 2017, 17:16
Parents
rPHbb745731171f: Limit meme text height to half of the image
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHbc5617954a64: Make control + enter submit forms if a textarea is focused (authored by epriestley <git@epriestley.com>).Jan 28 2013, 23:11