right click add shortcut to operator?

I have wrote a operator,but when I right click on the operator button,there is no Add Shortcut menu item there,I have check some scripts done other peoples,some operator have this item while some others not,I don’t found the different between them,can anyone help?