Re: spacebar accelerator key?



On Thu, 10 Aug 2000, Gary Scavone wrote:

 Hi Gary, 

> 
> This is probably a stupid question, but how does one specify that the
> spacebar be used as an accelerator key for a menu item (using
> GtkItemFactoryEntry)?  Thanks.

 I have an impression that it's impossible to have plain characters without
modifiers to be used as accelerators for menu items. I hope someone will
correct me if I'm wrong.

 You can fake accelerator by connecting to button_press_event on your window,
checking for space, and if it was space pressed, calling your action and
returning TRUE.
 
> *******************************************************
> * Gary Scavone                                        *
> * Center for Computer Research in Music & Acoustics   *
> * Stanford University                                 *
> * gary@ccrma.stanford.edu                             *
> * http://www-ccrma.stanford.edu/~gary/                *
> *******************************************************

 Best regards,
  -Vlad





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]