Re: Re: [PHP-GTK] Key Press php-gtk1
[email protected] (kksou) Fri, 19 Feb 2010 06:17:37 -0800 (PST)
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian, Just a thought here. You said "you must choose two keys on the keyboard that cannot be pressed using only one hand." If detecting two keys requires a lot of coding, how about detecting one keypress + one mouse click? It's much easier (less than 10 lines of coding), and I think people will need to use two hands to press a key and do a mouse click (unless they pick up the mouse with one hand, press the left mouse button, and then use the mouse to hit the keyboard)... Regards, /kksou It appears that in php-gtk1 the GDK_KEY_Shift_L and GDK_KEY_Shift_R are both equivalent to keyval 65505. I've decided the key repeat issue is a non-issue. It doesn't appear to overflow the buffer and cause the annoying internal PC speaker beeping. The reason for wanting to use Shift is that key does not repeat. But as I said, I believe it is a non-issue. If you want to see what I mean set up a key-pressed and key-released situation. Pressing most keys and holding will result in repeated "key-pressed" events but only one key-release" events. Shift, ctrl and a few others only register one key-pressed no matter how long you hold it down. F12, etc also register multiple key-pressed events when held down. On a side note, how many tab keys does your keyboard have? On Mon, Feb 15, 2010 at 7:24 PM, Madeleine D. <[email protected]> wrote: > > > Brian - > > I've never had to deal with the repeat issue, but for the selected keys, I > have two thoughts. > > You should be able to use the name keyvals of KEY_SHIFT_L and KEY_SHIFT_R. > We did something similar for the tab keys a few years back. > > If not, what about the Function Keys, as in F1 or F12 ?? > > hth, > Madeleine D. > -- View this message in context: http://old.nabble.com/Key-Press-php-gtk1-tp27594200p27652982.html Sent from the Php - GTK - General mailing list archive at Nabble.com.