-
Notifications
You must be signed in to change notification settings - Fork 18
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
Use of "\n" instead of custom onSubmitCustomKeyboard block #10
Comments
@dm-zharov Very nice to know! My thought is, to change "onSubmit" to directly use your proposal so that the native "onSubmit" modifier can be used, but additionally provide a closure in the builder that has one more parameter for custom actions, should onSubmit not suffice (essentially do what What do you think about this? |
@dm-zharov |
@paescebu I tried to find a way for implementation of additional closure, but didn't succeed. Maybe this logic should be inside custom keyboard? |
@dm-zharov have you tried my suggested branch? There I added a separate additional (optional) closure that can be used in the KeyboardBuilder so that we can keep the flexibility. Just add one closure parameter in the trailing closure. 'onSubmit' is replaced with native behaviour. And the respective modifier deprecated. |
@paescebu That behavior should be chosen on caller side via modifier.
|
@dm-zharov Have to think about it. But really valuable feedback. Keep the ideas coming! |
@dm-zharov
The longer I think about it the more I like the approach you tried to get me into. let me know about your thoughts Have a great weekend |
Closed as its now implemented with 1.0.3 |
Please excuse me for not responding sooner. I do like updated implementation. |
Just FYI:
Call of
textDocumentProxy.insertText("\n")
should be used to confirm typing. This could help to get rid of.onSubmitCustomKeyboard
closure implementation and switch back to native.onSubmit
.The text was updated successfully, but these errors were encountered: