I set shortcuts in the plug-in, but it didn't work

I set keyboardShortcut in the plug-in, but it didn’t work.

def settings(self):
	self.menuName = u'选择部件'
	self.keyboardShortcut = 'k'

what’s the wrong?

What kind of plugin is this? The self.keyboardShortcut works only with Filters.

oh,sorry,I wrote in a glyphsPlugin

Then you need to add the shortcut to the menu item yourself.