-
Notifications
You must be signed in to change notification settings - Fork 81
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
iOS a11y dialogues and popups integration #1091
Conversation
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.
setEscapeEventListener
doesn't look as good API and requirement for this interface.
Also, there are 3 more implementations that don't seem updated at all. CI should fail.
@@ -155,10 +156,20 @@ actual fun Dialog( | |||
} else { | |||
null | |||
} | |||
|
|||
val onEscapeEvent = if (properties.dismissOnBackPress || properties.dismissOnClickOutside) { |
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 should not depend on dismissOnClickOutside
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 should, that's basically the semantics of the action.
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's a public API, dump should be regenerated
* NOTE: Later this function can be used for root scene layer to perform contextual escape, such | ||
* as a navigation pop. | ||
*/ | ||
fun setEscapeEventListener( |
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 doesn't seem required to expose this method to public API. It duplicates existing functionality of other event handlers.
@elijah-semyonov I suggest you just generate Esc key event without changing of current APIs / dialogs implementation |
@elijah-semyonov You should run |
3fc414f
to
d1c43c6
Compare
Proposed Changes
Integrate popup and dialogues with a11y.
AddsetEscapeEventListener
toComposeSceneLayer
for semantic escape, aka "get me out of here if possible"-action incoming from accessibility-based input.Mimic keyboard ESC press on accessibility escape call.
Testing
Test: N/A