[suggestion] Add the Command key (Mac) as option to the tooltip modifier keys
tflo opened this issue · 8 comments
What version of ItemVersion are you running?
2022.47.2
What is your issue?
Thanks for adding the tooltip modifier keys.
For us Mac users, it would be nice to have the option to set the Command key as modifier for the tooltip, as this is our main modifier and in best thumb position.
For details how to do this (it is really easy), please see my post for ATT, which is a very similar case. (Or Leatrix.).
This is for WoW Retail. I currently don't play Classic, so I don't know if it will work there. (I have one WotLK Classic toon though, so I could test it.)
Thanks in advance for considering,
– Tom
Can you provide any screenshots of what you describe?
n/a
Just noticed that your addon is fully built on Ace libraries, including config. So it seems you are the wrong addressee in this case. (Somewhat surprised that they still have not added the modifier.)
PS: Posted in the Ace Issues now.
I do think this is possible without a fix from Ace. I'm not using any of their API to do the modifier detection or configuration.
I didn't know there was a meta modifier function until I read your linked post: IsMetaKeyDown()
. I think I can incorporate that right into this area:
ItemVersion/ItemVersion/Tooltip.lua
Line 22 in e243f08
Configuration takes place here:
ItemVersion/ItemVersion/Options.lua
Lines 202 to 214 in e243f08
I'll start working on this soon. Because I'm on Windows, would you be willing to give me feedback on how it works for Mac users after I commit it?
Well, if you can add the modifier without hooking into the Ace stuff, that would be great of course. (When I saw the AceConfig lib and that the modifier is completely missing there, I gave up ;)
would you be willing to give me feedback on how it works for Mac
Sure. This is not the first addon where I annoy the author with that suggestion. Dominos, Clicked, LeatrixPlus, ATT were before you ;)
I'm not sure if you saw it in the linked instructions in the OP: You can test for the Mac platform with IsMacClient()
. That means you can conveniently hide the option for platforms that have only 3 modifier keys.
Damn, you did it! It works perfectly! (Even combos work)
Just a minor cosmetic thing for the GUI: The short name of the key is "Cmd", so it would be "CMD" in all uppercase.
"META" is only used by Blizz in the API, on the Mac nobody knows the key under that name. Blizz also uses "CMD" in the Keybinding settings, for example:
Btw, also the new options for the color settings are great. Before, I always had difficulties to quickly spot the line in my overloaded tooltips ;)
Good stuff.
This has been merged.
If you would like to add your name to the AUTHORS
file, please make a PR.