setKeyPressToTrigger deprecated?

I noticed this in the docs … under addShortcut()

“Note that a different way of linking buttons to keypresses is by using the setKeyPressToTrigger() method to invoke a command - the difference being that setting a shortcut allows the button to be temporarily linked to a keypress only while it’s on-screen.”

It seems this method no longer exists?

I’m using a changelistener now to trigger clicks offscreen … so there is no real need that I can think of …

I think I just meant to type “setCommandToTrigger”. Thanks, I’ll tidy up the docs.