Page MenuHomePhabricator

Immediately deactivate remarkup autocomplete if there's no query
ClosedPublic

Authored by epriestley on Mar 30 2017, 3:41 PM.
Tags
None
Referenced Files
F19039017: D17583.id42298.diff
Wed, Nov 26, 6:36 AM
F19036915: D17583.id.diff
Tue, Nov 25, 9:18 PM
F19028977: D17583.diff
Mon, Nov 24, 4:47 PM
F18856386: D17583.id42304.diff
Nov 1 2025, 9:31 AM
F18856026: D17583.id42304.diff
Nov 1 2025, 7:37 AM
F18851581: D17583.id42304.diff
Oct 31 2025, 2:19 AM
F18843016: D17583.diff
Oct 28 2025, 8:27 PM
F18828981: D17583.id.diff
Oct 24 2025, 7:04 PM
Subscribers
None

Details

Summary

Fixes T12479. If you end a line with a character like ":" in a context which can trigger autocomplete (e.g., .:), then try to make a newline, we swallow the keystroke.

Instead, allow the keystroke through if the user hasn't typed anything else yet.

Test Plan
  • Autocompleted emoji and users normally.
  • In an empty textarea, typed .:<return>, got a newline instead of a swallowed keystroke.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 30 2017, 3:58 PM
This revision was automatically updated to reflect the committed changes.