[futurebasic] Re: [FB] menu command processing

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2009 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Wed, 28 Oct 2009 11:40:27 +1300
Waverly wrote:

> I have a strange issue.  I have a custom HIView that receives and  
> displays keyboard input and command event handler.  The menu's and  
> windows are nib based.

> The HandleMenus function is called if I type the command key  
> combination but if I hold that key combination down the first one  
> gets process but the others do not.  They get sent through as key  
> strokes.  For example, if my key combination was Cmd-k which does  
> nothing more than beep, using Cmd-k will cause a beep but if I hold  
> Cmd-k the first beep will occur but then I see a stream of "k"'s  
> across the screen and no beeps occur.  Does anyone have ideas on why  
> I'm not receiving all the menu events, but just one.


1. In your nib, does the menu item (whose key equivalent is Cmd-k)  
have the Auto Repeat option? IF not, try turning it on.
2. Post the code that handles keyboard events for your custom HIView.

Robert P.