Skip to content

Fix a situation where copy/paste hotkeys don't work. #4381

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SuuperW
Copy link
Contributor

@SuuperW SuuperW commented Jun 29, 2025

I sometimes find that I am unable to copy/paste inputs in TAStudio. Maybe this fixes it. It does fix this particular situation:

  1. Click the marker list or another control to ensure it has focus
  2. Do not move the mouse over the input list
  3. Alt+tab to another window
  4. Alt+tab back
  5. Try to copy with Ctrl+C.

This might not fix it in every case. There have been several times when I am unable to copy/paste with the keyboard even after clicking the input list, moving the mouse around, clicking another window then going back to TAStudio... nothing seems to work. I have no idea how to reproduce that, but I do know by using the debugger that when it happens pressing Ctrl+C does not enter CopyMenuItem_Click. That issue has been fixed.

Check if completed:

@Morilli
Copy link
Collaborator

Morilli commented Jul 28, 2025

No idea what steps 3 and 4 are for, they are not required. With that in mind this isn't a "fix", just a behavior change that allows hotkeys for the input roll to work everywhere in the tastudio window, not just when the input roll is focused.

Considering mono does not handle focus correctly (#4375) and I don't see a situation in which not focusing the input roll should do anything meaningful I think the best course of action here is not to try and select the TasView on any random user action but rather allow it to not be selected and still handle the corresponding hotkeys.

There's already a random TasView.Select() on TasView_MouseEnter (the whole reason your step 2 is even necessary), let's not add another. It seems like the best solution is to remove all explicit Select() calls and all .Focused checks.

@SuuperW
Copy link
Contributor Author

SuuperW commented Jul 29, 2025

I think the best course of action here is not to try and select the TasView on any random user action but rather allow it to not be selected and still handle the corresponding hotkeys. It seems like the best solution is to remove all explicit Select() calls and all .Focused checks.

I think that would be good. Probably the way to make copy/paste work would be making them BizHawk hotkeys (instead of relying on the tool strip menu item to handle it via shortcut keys). Like everything else is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants