Liresol / anki-custom-shortcuts

Custom Keyboard Shortcuts for Anki 2.1
MIT License
62 stars 14 forks source link

Customize Keyboard Shortcuts to a Controller #159

Open rosie8642 opened 2 years ago

rosie8642 commented 2 years ago

I am trying to customize keyboard shortcuts to fit a controller that I am using. I configured the following keys to the following.

The function of the reviewer choice 1, 2, & 3 configured properly. However, I cannot get the flip card 1 to change from " " to "g." Why is this case?

From this:

"reviewer choice 1": "1",

"reviewer choice 2": "2",

"reviewer choice 3": "3",

"reviewer choice 4": "4",

"reviewer flip card 1": " ",

"reviewer flip card 2": "Qt.Key_Return",

"reviewer flip card 3": "Qt.Key_Enter",

To this:

"reviewer choice 1": "h",

"reviewer choice 2": "i",

"reviewer choice 3": "j",

"reviewer choice 4": "4",

"reviewer flip card 1": "g",

"reviewer flip card 2": "Qt.Key_Return",

"reviewer flip card 3": "Qt.Key_Enter",

Strategies I've tried: -Ensured the "g" key is not being coded for something else

-added an additional reviewer flip card titled "reviewer flip card 4": "g" but that didn't work either.

-Changed "Qt.Key_Return" to "g" instead of " " but this also did not work.

Liresol commented 2 years ago

Hello, Just to make sure, have you changed other shortcuts (such as in "main toolbox" or "main")? There are a few nasty interactions that might occur when you set shortcuts outside the reviewer to reviewer shortcuts, and it's possible that you bumped into one of these. Also, are there other addons that you have installed that might also be adding shortcuts? It doesn't seem likely, but there's a chance that there's a conflict there as well.

rosie8642 commented 2 years ago

Hello,

No I haven’t changed anything outside the 4 shortcuts mentioned in the post. I do have to her addons but I don’t think they’re adding shortcuts? But if they were how would I know?

Liresol commented 2 years ago

Hello, I should also mention that another thing to try is to use the keyboard with your previous mapping ("reviewer flip card 1": "g") and seeing if that works, since it might also be an issue with the controller mapping.

One way to tell that another addon might be using this shortcut would be to disable this addon and seeing what happens when you press "g" when in the reviewer, since if another addon is using it then it would activate then.

The version of Anki might also be important, since this addon behaves differently in different versions due to Anki changing shortcuts in its updates. If possible, could you also give the version you are using?

rosie8642 commented 2 years ago

Hello,

No I haven’t changed anything outside the 4 shortcuts mentioned in the post. I do have to her addons but I don’t think they’re adding shortcuts? But if they were how would I know?

On Tue, Apr 5, 2022 at 12:35 AM Eric Hu @.***> wrote:

Hello, Just to make sure, have you changed other shortcuts (such as in "main toolbox" or "main")? There are a few nasty interactions that might occur when you set shortcuts outside the reviewer to reviewer shortcuts, and it's possible that you bumped into one of these. Also, are there other addons that you have installed that might also be adding shortcuts? It doesn't seem likely, but there's a chance that there's a conflict there as well.

— Reply to this email directly, view it on GitHub https://github.com/Liresol/anki-custom-shortcuts/issues/159#issuecomment-1088258758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYRZFI2COVPFHYFUI53JSS3VDO7IRANCNFSM5SQP3QEQ . You are receiving this because you authored the thread.Message ID: @.***>