Re: How can I turn of repeat of keys

Scott Raney (raney@metacard.com)
Wed, 17 May 1995 11:09:50 -0600 (MDT)

>
> I don't keys to repeat when held down in a particular stack. Is there
> anything I can set to prevent auto repeat?

MetaCard has no properties for this. There is a way to turn off
repeat in your X server (running the command xset -r will do it), but
this is global to all applications and so you shouldn't use it on
systems that will be running multiple applications. Or at least turn
it back on when your stack is closed.

The only other thing you could do is to trap the rawKeyDown message
One parameter is passed to the handler, the raw X KeySym of the key
that was pressed. You could check the key and the time (using the
milliseconds function), stored in global variable at the end of the
handler the last time it was called and only pass the message if the
key wasn't a repeat.

> -sp-

-- 
***********************************************************************
* Scott Raney  303-447-3936            Remember: the better you look, *
* raney@metacard.com                   the more you'll see -- Lidia   *
***********************************************************************