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

WebUI keyboard shortcuts disabling common keyboard shortcuts when typing into a text input #5326

Closed
anthonyryan1 opened this issue Mar 30, 2023 · 1 comment · Fixed by #5381

Comments

@anthonyryan1
Copy link

What is the issue?

This is a new regression to the WebUI since the 4.0 release as far as I can tell.

In transmission.js _keyDown() we check the keyboard shortcuts from action-amanger.js here:
https://github.com/transmission/transmission/blob/4.0.2/web/src/transmission.js#L473-L480

But we don't define is_input_focused until a few lines later: https://github.com/transmission/transmission/blob/4.0.2/web/src/transmission.js#L490

I think there's merit to not triggering that action when an input is focused.

  • One example use case is "Ctrl+A, then backspace" to clear the searchbox at the top of the page.
  • Another is Ctrl+V pasting into a search box, where we've accidentally disabled that way to paste

I'm happy to submit a fix for this, but I wanted to confirm the dev team is content with disabling all keyboard shortcuts when a text input is focused.

Which application of Transmission?

Web client

Which version of Transmission?

4.0.x

@GaryElshaw
Copy link
Contributor

Having lots of discussion around that area at the moment, i doubt anyone will complain if you fix it! #5318 (comment)

@killemov killemov mentioned this issue Apr 11, 2023
ckerr added a commit that referenced this issue Apr 12, 2023
Fixes #5326.

Notes: Turned off keyboard shortcuts when input fields have focus.
ckerr added a commit that referenced this issue Apr 13, 2023
Fixes #5326.

Notes: Turned off keyboard shortcuts when input fields have focus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants