Re: Automatic focus handling? How do I turn it off?



>i.e., the order of operations should be:
>
>1. Mozilla grabs ALL gdk events and processes them in its own handler
>   (i.e. gdk_event_handler_set (handle_gdk_event, NULL, NULL);)
>
>2. Events are then farmed out to the widget from which they
>   originated (an nsWindow pointer is stored in the user data of the
>   event's any.window object).
>
>3. The widget's key_press handler returns 0 for any keypress which is not
>   something simple, like [A-Za-z0-9_-+] etc..
>
>4. (hopefully) The key_press event travels up the window hierarchy to the
>   main Mozilla window, where it is ground through the Mozilla keybinding
>   system and produces some result. The event then should _die_.
>
>The problem is that, between stages 3 and 4, gtk intercepts the key press
>and changes the focus. Yuck. I don't think the fix here is going to be
>easy...

use a key snooper instead of an event handler.

--p




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