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

Certain keyboard shortcuts without modifiers appear broken while focus is on a text input #1549

Open
Kaikogf opened this issue Dec 10, 2020 · 6 comments
Labels
Bug UX Related to the way users interact with the program

Comments

@Kaikogf
Copy link

Kaikogf commented Dec 10, 2020

Issue Summary

When changing the default Onion Skins visualization from "1" to a different number, it will make shortcuts keys NextFrame "." and PreviousFrame ";" to stop working.

Steps to reproduce

Open Pencil2D
Have several frames on the timeline.
There is no need to activate Onion Skins.
Confirm that the shortcuts "." and "," are working.
Now change the number of "previous frames" or "next frames" on the Onion Skins' panel.
Those shortcuts will stop working after that.
You have to click on "activate onion skins" for them to work again.

System Information

  • Pencil2D Version:
    Nightly Build 07thDec2020
  • Operating System:
    Win 10pro

  • Graphics Tablet:
    HUION HD185

@J5lx
Copy link
Member

J5lx commented Dec 12, 2020

I can’t reproduce this behaviour exactly as you described it, but I think it might be related to keyboard focus. If you click on the canvas or press the tab key while the shortcuts are not working, do they start working again?

@J5lx J5lx added Bug Bug Triage UX Related to the way users interact with the program labels Dec 12, 2020
@Kaikogf
Copy link
Author

Kaikogf commented Dec 12, 2020

@J5lx
I edited a little bit the steps above (my English was no good)

Answering your questions, if I click on the canvas the shortcut keys will start working again (right on point there). Hitting on the TAB key will do the same as before but here I have to hit it twice.

@J5lx
Copy link
Member

J5lx commented Dec 12, 2020

Alright, that does sound like a keyboard focus issue. It’s because the , and . shortcuts do not use any modifiers such as Ctrl or Alt, so instead of triggering the associated actions, the comma and dot are sent to the previous/next frames input field (and discarded, because those fields only accept numbers). I’m not sure yet if there even is a proper way to “fix” this, but as a workaround you can go to the preferences and change those shortcuts to something else with modifiers, for example Ctrl+Shift+.

@J5lx J5lx removed the Bug Triage label Dec 12, 2020
@J5lx J5lx added this to Needs triage in Bug Fix Priority via automation Dec 12, 2020
@J5lx J5lx moved this from Needs triage to Low priority in Bug Fix Priority Dec 12, 2020
@J5lx J5lx changed the title [ISSUE] changing the number of Onion Skins visualization, it will stop some shortcut key from working Certain keyboard shortcuts without modifiers appear broken while focus is on a text inpu field Dec 12, 2020
@J5lx J5lx changed the title Certain keyboard shortcuts without modifiers appear broken while focus is on a text inpu field Certain keyboard shortcuts without modifiers appear broken while focus is on a text input field Dec 12, 2020
@J5lx J5lx changed the title Certain keyboard shortcuts without modifiers appear broken while focus is on a text input field Certain keyboard shortcuts without modifiers appear broken while focus is on a text input Dec 12, 2020
@scribblemaniac
Copy link
Member

@J5lx If you're going to work on this, have a look at what the fps control does. I believe there were some changes to that to reduce the chances of it stealing keyboard focus when that is not desired.

@J5lx
Copy link
Member

J5lx commented Dec 12, 2020

Oh thanks, I didn’t remember that. I’ll add it to the onion skin spin boxes as well.

@Kaikogf
Copy link
Author

Kaikogf commented Dec 14, 2020

Alright, that does sound like a keyboard focus issue. It’s because the , and . shortcuts do not use any modifiers such as Ctrl or Alt, so instead of triggering the associated actions, the comma and dot are sent to the previous/next frames input field (and discarded, because those fields only accept numbers). I’m not sure yet if there even is a proper way to “fix” this, but as a workaround you can go to the preferences and change those shortcuts to something else with modifiers, for example Ctrl+Shift+.

Ohhh I see. That is why. So I am going to use the alternatives shortcuts... Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug UX Related to the way users interact with the program
Projects
Status: Low priority
Bug Fix Priority
  
Low priority
Development

No branches or pull requests

3 participants