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

Translate link does not respond to middle click #4756

Open
Sudrien opened this issue Jul 9, 2024 · 0 comments
Open

Translate link does not respond to middle click #4756

Sudrien opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Sudrien
Copy link

Sudrien commented Jul 9, 2024

Describe the bug

The "Translate" link on individual posts responds to left click and touch. It does not respond to middle click, which in many web browsers opens a link in a new tab.

I'm very much trained to use middle click in this situation - as I am expecting a new tab to open - and when I do so, nothing happens.

Expected behavior

In this case, left click and middle click should have the same behavior, opening a new window to google translate.

Additional context

onPress={onPressTranslateMessage}>

                <Menu.Item
                  testID="messageDropdownTranslateBtn"
                  label={_(msg`Translate`)}
                  onPress={onPressTranslateMessage}>
                  <Menu.ItemText>{_(msg`Translate`)}</Menu.ItemText>
                  <Menu.ItemIcon icon={Translate} position="right" />
                </Menu.Item>

I think an alternative to onPress might be considered here?

@Sudrien Sudrien added the bug Something isn't working label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant