Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Enter.key detection to Title block #493

Merged

Conversation

daniloercoli
Copy link
Contributor

@daniloercoli daniloercoli commented Jan 24, 2019

This PR adds a new empty block when Enter.key is pressed in the Title block, and gives the ability to add a new block after it.

Note: This PR does hide the keyboard at the moment, it's a default behavior (at least) on Android., of the way we detected Enter.key. We may need to migrate the Title to RichText if there is no way to circumnavigate this problem.

Note 2: At the moment there is not split in place for the title filed. If you tap enter on the middle of the field there is no split yet.

We need to update the GB ref after the merge of the companion GB pull request here: WordPress/gutenberg#13500

@daniloercoli daniloercoli added the [Type] Enhancement Improves a current area of the editor label Jan 24, 2019
@diegoreymendez
Copy link
Contributor

@daniloercoli - I'm retargetting this one as the main one was already merged.

@diegoreymendez diegoreymendez changed the base branch from issue/372-add-title-to-gutenberg-mobile to develop January 24, 2019 21:37
…rg-mobile into issue/372-add-enter-key-detection-to-Title-block

* 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile:
  Update bundle
  bump aztec android to v1.3.18 (#498)
  Update GB hash
  [Android] - Make sure mContentChanged has the correct value when asking content from the React side. This was necessary since the call to retrieve content and title are separate on Android.
  The HTML editor background is now white.
  Make sure to use `setContent` when initializating the GlueCode
  Dock the keyboard hide button to the right side of the screen (#480)
  RNAztecView: Removing branch spec from podspec
  Moving RNTAztecView.podspec to the gutenberg-mobile root dir.
  Aztec iOS: Force send height information to JS after pasting text

# Conflicts:
#	gutenberg
Copy link
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @daniloercoli !

…rg-mobile into issue/372-add-enter-key-detection-to-Title-block

* 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile: (51 commits)
  Wait for both title and content to have been set at least once before starting the RN app
  Update gutenberg submodule
  Updated gutenberg submodule
  Update to latest version in Gutenberg.
  Add info.plist properties describing the need for media access.
  Allow selection of media images from camera.
  passing serverMediaId in onMediaFileUploadSucceeded so it can be properly replaced in RN
  added helper method to avoid setting serverMediaId to zero everywhere where not needed or known
  Removed unused code
  Updated gutenberg submodule
  Updated gutenberg submodule
  Change media id to use a int value.
  Updated gutenberg submodule
  Implemented the callbacks for uploading the image when photo is captured with Camera
  changed mediaId from String to int to match media handling in Gutenberg and WP media library
  Update android bridge to send serverID parameter on upload event.
  Updated gutenberg submodule
  Convert the server media ID to an Int.
  Update bundle.
  Allow set of media id for media library selections.
  ...

# Conflicts:
#	gutenberg
@daniloercoli daniloercoli merged commit dedb63b into develop Jan 26, 2019
@daniloercoli daniloercoli deleted the issue/372-add-enter-key-detection-to-Title-block branch January 26, 2019 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement Improves a current area of the editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants