Skip to content
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

Revert monitoring modifier in popup shortcuts #2587

Merged

Conversation

dannycolin
Copy link
Collaborator

@dannycolin dannycolin commented Oct 17, 2023

Description

Fix a regression in our shortcut listener. The previous patch was listening if a modifier was pressed in order to prevent conflicts with Firefox builtin shortcuts. However, the implementation had a side effect of preventing the insertion of characters from a key combination including a modifier.

You can test this fix by trying to insert characters like @ or :. Also, you can test to press shift + 1 to see the behavior I'm considering a conflict with Firefox. The addon popup stays open while the focus is now a newly opened tab.

Note: The conflict with Firefox builtin shortcuts existed prior to both the patch already landed in main and this fix so it doesn't remove any functionality.

Type of change

Select all that apply.

  • Bug fix
  • New feature
  • Major change (fix or feature that would cause existing functionality to work differently than in the current version)

@dannycolin dannycolin added the Component: Shortcuts Issues related to keyboard shortcuts label Oct 17, 2023
@dannycolin dannycolin self-assigned this Oct 17, 2023
Nomes77 added a commit to Nomes77/multi-account-containers that referenced this pull request Oct 17, 2023
Copy link
Collaborator

@maxxcrawford maxxcrawford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me! Let's get this up and out.

@dannycolin dannycolin merged commit 6573123 into mozilla:main Nov 20, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Shortcuts Issues related to keyboard shortcuts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't imput any characters involving a modifier since commit ef1030789
2 participants