Replies: 1 comment 5 replies
-
|
Not every shortcut combination works. Technically, as a plugin we can only add an event listener and accept whatever get passed to us. We don't block or forbid any keybindings. The arrow keys with modifiers are either used by window manager (for my linux desktop, the ctrl - alt - left/right arrow is swtiching workspace), writing (shift - left/right arrow for selection), or app (alt - left/right arrow are go back/foward). Since these combinations can really vary between different OS and desktops, I don't know how to safely include them in the readme? Because for some people they do work... If you have a good idea, please feel free to PR, though. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
(At least under Linux) it seems that I cannot bind any script to the arrow keys (with modifiers): e.g., none of
Ctrl + Left arrow, orAlt + Left arroworShift + Left arrow, work. I can record them when I define the script, but then they do nothing.I am sure it is not my window manager (XMonad): why? Because I can bind arrows (and modifiers with arrows) to arbitrary actions in, say, Emacs. So the window manager is not intercepting the arrows.
My limited understanding (and gooling around) suggests this is an inherent limitation of Zotero and cannot be worked around.
Basically, all shortcuts have to be of the form[see edit after next comment]modifier key(s) + primary printable character, and arrow keys are not primary printable characters. Is this so?Might it be good to mention in the readme that arrows (with or without modifiers) cannot be used to bind anything?
A similar thing happens to me with the "-" sign. I don't seem to be able to bind scripts to, for example
Ctrland the-(but I can bind scripts toCtrland the+sign). Interestingly, if I look at the binding under the advanced config, I seeCtrl,-and, the Shortcut is listed asCtrl,-, and yet in the editing screen for actions and tags, after saving, it shows asCtrl. (In contrast,Ctrlwith+, the plus sign, works fine). The-should fulfill being a primary printable character but, at least for me, it does not work when binding scripts. (And it does not seem to work either in Windows: see, e.g., #562 (reply in thread))More generally: if the arrow keys with any modifier and
Ctrl -are not possible combinations, maybe they could be added to a "List of forbidden/not available keybindings"?Beta Was this translation helpful? Give feedback.
All reactions