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
Fix backup reminder shortcuts #1454
Conversation
@DanielSinclair want some product feedback here. There are some implications on whether we want this to impact other modals (like token expanded state) as well as the backup reminders. |
Here's the packed extension for this build: |
@BrodyHughes Just targeting the bottom-presenting modals like Backup Reminders should suffice. The issue was more so that shortcuts and actions were occurring invisibly behind the modal UI. We would still want the global shortcuts like |
if (inputIsFocused) return; | ||
if (isModal) return; |
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.
Poorly named I guess, but these are actually the global shortcuts here. We'd expect w
to open the wallet switcher from any of the layer 1 drill-downs
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.
ok cool cool. I can see what I can do in that case.
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
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.
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
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.
Looks good to me!
@derHowie if you have a sec to do a code review |
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.
💯
Fixes BX-1378
What changed (plus any additional context for devs)
isExplainerSheet
class to determine whether or not the global shortcuts should be activeisExplainerSheet
, the.
,x
.,
, etc shortcuts won't work. Only the normal navigation andesc
. When the backup reminder is dismissed these will work again.esc
to close explainersScreen recordings / screenshots
Screen.Recording.2024-04-02.at.4.54.42.PM.mov
What to test
ESC
andTAB
through items on the backup reminder.
,
s
global shortcuts as well (they shouldn't work now while the backup reminder or explainer modals are up)