-
Notifications
You must be signed in to change notification settings - Fork 418
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
Conversation
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 There's already a random |
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. |
…cus for any operations since it doesn't make sense to do that)
Removed the focus checks. The seemingly random |
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.
Yes, "Clone # Times" works on my machine with this patch.
@@ -143,7 +143,7 @@ private void SaveBk2BackupMenuItem_Click(object sender, EventArgs e) | |||
|
|||
private void SaveSelectionToMacroMenuItem_Click(object sender, EventArgs e) | |||
{ | |||
if (!TasView.Focused && TasView.AnyRowsSelected) | |||
if (!TasView.AnyRowsSelected) |
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.
This changes the semantics—but I think it was a typo before and should have read !TasView.Focused || !TasView.AnyRowsSelected
like elsewhere in this file, so it would now work as intended.
@@ -177,7 +177,7 @@ private void SaveSelectionToMacroMenuItem_Click(object sender, EventArgs e) | |||
|
|||
private void PlaceMacroAtSelectionMenuItem_Click(object sender, EventArgs e) | |||
{ | |||
if (!TasView.Focused && TasView.AnyRowsSelected) | |||
if (!TasView.AnyRowsSelected) |
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.
ditto
Have you tested this? I tested briefly with it removed and didn't notice any difference in behavior. |
Yes, RMB+wheel scroll doesn't work if you click outside the TasView, until it is re-focused. |
I sometimes find that I am unable to copy/paste inputs in TAStudio. Maybe this fixes it. It does fix this particular situation:
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 enterThat issue has been fixed.CopyMenuItem_Click
.Check if completed: