-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Issue 331/mention support on @ keypress #22119
Issue 331/mention support on @ keypress #22119
Conversation
On Android we are discarding selections when we think they might get stripped by Aztec, so adding the space to the ends results in the selection values getting discarded.
# Conflicts: # packages/components/src/index.native.js
Size Change: 0 B Total Size: 1.13 MB ℹ️ View Unchanged
|
…_331/mention_support_trigger_on_keypress
…_on_keypress # Conflicts: # packages/rich-text/src/component/index.native.js
…mention_support_trigger_on_keypress
|
||
this.handleDelete( event ); | ||
this.handleEnter( event ); | ||
this.handleMention( event ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a reminder that before merging this we need to make sure our usage of capabilities and the DEV
flag is consistent between here and with the mention button on the format bar.
…ort_trigger_on_keypress
bf44b62
to
31d0007
Compare
…_on_keypress # Conflicts: # packages/react-native-editor/ios/Podfile.lock
@ceyhun do you mind giving a look to this again, now that we have updated it for all the monorepo changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works great and as expected, although on Android it felt a bit slow to react when @ is pressed (1-2 seconds) for me both in emulator and in real-device.
It may be because it was running from the server and in DEV mode or because I have an old device. It'll probably be faster when bundled.
Description
Change the rich text component in mobile in order to intercept any random keypress.
How has this been tested?
This can be tested by running:
npm run native ios
ornpm run native android
after the demo app starts, follow these steps:matt
is addedRelated PR: GB-Mobile: wordpress-mobile/gutenberg-mobile#2424
Screenshots
Types of changes
Checklist: