What are the key-names for the PressAndHold.app keyboard plists? To avoid ambiguity in this question I will use key to mean a plist-dictionary-key (look-up string); and key to mean a button on your keyboard.



This answer to another question identified a great way to edit the special characters you can insert using the press-and-hold method on your keyboard.

You can edit the Keyboard-xx.plist files of the PressAndHold.app to add your characters to existing press-and-hold keys. The plist dictionary keys for each press-and-holdable key look like this: &lt;key&gt;Roman-Accent-a&lt;/key&gt;, and &lt;key&gt;Roman-Accent-A&lt;/key&gt;, etc. but if you want to add some press-and hold characters to a number key, or a punctuation key then you need to know the key name for the dictionary in order to add it.

I want to add press-and-hold characters for the 2 and 3 keys and possibly others, I have tried the following formats for the key names in the plist file:

2
Number-2
Roman-Accent-2


None of these add a press-and-hold popover for the 2 key. What are the correct key names for all of my keyboard keys that I can add in Keyboard-en.plist?
I have actually the same question, but this may help someone that is trying to figure this out.

I found here, that the name is probably Roman-Accent-2:
https://github.com/skalnik/dotfiles/blob/master/osx/emoji-expansions.plist

as this code is used:

&lt;key&gt;Roman-Accent-1&lt;/key&gt;
&lt;dict&gt;
&lt;key&gt;Direction&lt;/key&gt;
&lt;string&gt;right&lt;/string&gt;
&lt;key&gt;Keycaps&lt;/key&gt;
&lt;string&gt;1 1&lt;/string&gt;
&lt;key&gt;Strings&lt;/key&gt;
&lt;string&gt;1 1&lt;/string&gt;
&lt;/dict&gt;


Also look up Keyboard-ja.plist, and you see that they use this Roman-Accent-x for almost any character x. But nevertheless, it doesn't work for me if I add it to Keyboard-en.plist. I don't understand why.