-
Notifications
You must be signed in to change notification settings - Fork 17
Add TizenView::Unfocus() method #352
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 TizenView::Unfocus() method #352
Conversation
* When Blur() is called, the view no longer handles key-events. As a result the keyboard focus can be removed from the view. * Now, if a backkey is pressed when the navigation stack is empty, the view loses keyboard focus by Platform channel with TizenViewElementary. Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
Maybe |
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Ok, I updated PR as your comment. |
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
| } | ||
|
|
||
| void TizenViewNui::Unfocus() { | ||
| FT_UNIMPLEMENTED(); |
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.
Is this difficult to implement?
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.
As you can see. nui implementation is quite different from elementary implementation.
I don't know much about this yet, and I have to study it. I need more time for this. so I want to leave this part for next PR.
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.
Since NUI's TouchEvent Callback is located in flutter-tizen, it should be implemented with flutter-tizen(with additional APIs(?)). I will check after this patch is applied.
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.
I think we should finalize the design before applying this change.
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.
Ah, then, it seems that the Unfocus() method and the focused member should be implemented in TizenView.
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.
@JSUYA I moved them to TIzenView
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.
I made a PR applicable to NUIView. (#354)
I changed Unfocus() to SetFocus(bool f) because there are cases where I need to make focused_ true.
* Tidy up based on review. Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae boram21.bae@samsung.com