Liresol / anki-custom-shortcuts

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

1) Can you add the Alt, Ctrl, Shift, and Fn keys as keybinding options? #178

Closed AkashJ7 closed 2 years ago

AkashJ7 commented 2 years ago

Version: 2.1.54 Qt5 OS: Windows 11

1) I like this addon, but was interested in having the alt, shift, ctrl, and fn keys implemented as individually pressable buttons as well. But I also don't know what the Qt.Key_Alt/Fn codes would be, so if you have those or just make it so that "Fn" and "Alt" would work, that would be great.

Here are the Qt codes/values or whatever since I noticed that some of the other ones also used this. There's no Fn/Function key :(. It would be fine if you couldn't do Fn. image

Liresol commented 2 years ago

Hello, Sorry for the inconvenience, but this probably isn't possible based on the framework that Anki uses. If the base shortcut component (QShortcut) in Qt doesn't support just Alt/Ctrl/Shift/Fn (i.e. you can't already use this setting), then it will be prohibitively difficult to implement it in an addon.