Key binding with Ctrl

Scott Tringali scott.tringali at etnus.com
Tue Oct 17 20:17:34 CEST 2006


Scott Woodford wrote:

> 1) How can I find out about this hierarchy of key bindings - what keys 
> are bound at what level, how I can override them?
> 2) Is it possible to bind Ctrl+h away from find_selection()?

Accelerators bound to menu items are global accelerators.  Text 
translations are local to the text widget.  Global accelerators trump 
text translations, always.

Menu accelerators are typically things like ^F, ^G, ^H, ^S, etc.
Text translations are typically things like PageUp, arrow keys, etc.

Most actions that you see in menus are done as global accelerators.  If 
you want to use them for a different purpose at a different level, you 
have to find the menu item and explicitly remove the accelerator by 
giving it a blank.  Otherwise it stays there, trumping your translation.



More information about the Discuss mailing list