Mailspring/internal_packages
Ben Gotow 1d19533fd8 fix(focus): Minor changes to composer focus logic to focus new drafts
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
2016-01-05 11:34:26 -08:00
..
account-sidebar feat(mail-rules): Per-account mail rules filter incoming, existing mail 2015-12-23 02:19:32 -05:00
attachments fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
category-picker fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
composer fix(focus): Minor changes to composer focus logic to focus new drafts 2016-01-05 11:34:26 -08:00
composer-signature fix(extension-adapter): Update adapter to support all versions of extension api we've used 2015-12-30 15:11:37 -05:00
composer-spellcheck fix(specs): Fix extension test 2015-12-30 18:08:33 -05:00
events feat(observables): Implementation of observables to replace some stores 2015-12-07 16:52:46 -08:00
feedback bump(electron): 0.34.3 => 0.35.1 2015-11-23 22:09:17 -08:00
inbox-contact-elements fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
message-autoload-images fix(extension-adapter): Update adapter to support all versions of extension api we've used 2015-12-30 15:11:37 -05:00
message-list feat(column-width): Store column width state in the app 2015-12-30 15:18:38 -05:00
mode-switch fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notification-mailto fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notification-update-available fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notifications fix(mail-rules): Catch and disable mail rules building bad actions 2015-12-28 18:39:06 -08:00
onboarding fix(auth): Log first account creation 2015-12-08 17:05:59 -08:00
plugins fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
preferences lint(mail-rules): Fix build failure from linter issue 2015-12-29 14:41:30 -08:00
print fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
search-bar feat(mail-rules): Per-account mail rules filter incoming, existing mail 2015-12-23 02:19:32 -05:00
sidebar-fullcontact feat(transactions): Explicit (and faster) database transactions 2015-12-17 11:46:05 -08:00
system-tray refactor(tray): Update main file for tray package 2015-12-21 20:18:17 -08:00
thread-list Moved all quick actions within flexbox from injectable component 2016-01-04 20:25:59 -05:00
tooltip fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
ui-dark feat(theme-selector): Add theme selector to preferences page 2015-12-15 10:29:58 -08:00
ui-light feat(theme-selector): Add theme selector to preferences page 2015-12-15 10:29:58 -08:00
undo-redo fix(theme): Dark mode styling for undo/redo component 2015-12-07 15:11:11 -08:00
unread-notifications feat(account-prefs): Adds new page for Account in preferences 2015-12-10 15:27:29 -08:00
worker-sync feat(mail-rules): Per-account mail rules filter incoming, existing mail 2015-12-23 02:19:32 -05:00
worker-ui fix(mail-rules): Catch and disable mail rules building bad actions 2015-12-28 18:39:06 -08:00