mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 10:38:11 +08:00
7f80cc8038
Summary: Remove FocusTrackingRegion—all CommandRegions should be focusable, and nesting the two creates varying behavior based on which is the parent Calling focus() on an injected / unsafe component should always do /something/. Try the inner React method, inner DOM method, or call on ourselves Rename contentEditable._focusEditor to "focus" since it intends to replace default focus behavior In ComposerView, always change focus via setState, never by calling focus() directly. Rather than tracking `_lastFocusedField`, just focus whenever the activeElement isnt within the focusedField. Make body initial focus when draft is pristine... ...(ensures new drafts are focused) Test Plan: Run tests Reviewers: evan, juan Reviewed By: evan, juan Differential Revision: https://phab.nylas.com/D2406 |
||
---|---|---|
.. | ||
account-contact-field.cjsx | ||
collapsed-participants.cjsx | ||
compose-button.cjsx | ||
composer-editor.jsx | ||
composer-view.cjsx | ||
expanded-participants.cjsx | ||
fields.cjsx | ||
file-upload.cjsx | ||
image-file-upload.cjsx | ||
main.cjsx | ||
participants-text-field.cjsx |