View Single Post
Old 08-29-2011, 02:53 PM   #22
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,447
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I suggest you simply call create_menu_action with shortcut=False, then no registering will happen. You will need to jump through a few hoops to make sure the shortcuts still work though, since the keyboard manager will have the old action registered. Should be as simple as adding a method to the keyboard manager to replace the registered action for a given unique name
kovidgoyal is online now   Reply With Quote