Re: [gtk-list] RE: stopping arrow-moves-focus
- From: <nuke bayside net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] RE: stopping arrow-moves-focus
- Date: Mon, 15 Jun 1998 21:27:34 -0400 (EDT)
On Mon, 15 Jun 1998, Stefan Jeske wrote:
> On 15-Jun-98 nuke@bayside.net wrote:
> > how would i stop the up/down arrows from moving the focus? what i'm trying
> > to do is trap the arrow keys in a GtkEntry, but it's impossible if the
> > GtkEntry never recieves the key code.
>
> In your key_press callback, if event->keyval == GDK_Up / GDK_Down etc.,
> do a gtk_signal_emit_stop_by_name (GTK_OBJECT (widget), "key_press_event").
thanks. that worked :)
i also realized that i was expecting GDK_uparrow and GDK_downarrow, which
aren't the arrow keys on my keyboard.
now to figure out how to signal a scrollbar to move itself..
_ _ __ __ _ _ _
| / |/ /_ __/ /_____ | Nuke Skyjumper |
| / / // / '_/ -_) | "Master of the Farce" |
|_ /_/|_/\_,_/_/\_\\__/ _|_ nuke@bayside.net _|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]