[Gtkradiant] [Bug 181] New: Key events autofocus console

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Tue, 11 Sep 2001 01:11:38 -0500


           Summary: Key events autofocus console
           Product: GtkRadiant
           Version: 1.1-TA.1-nightly
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: editor
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: rr2do2@q3f.com

The bug was that keyevents for keys that were already were pressed (and thus 
had the RAD_PRESS modifier set) just skipped the normal handling in 
mainframe_keypress. Thus they didn't get to the

gtk_signal_emit_stop_by_name (GTK_OBJECT(widget), "key_press_event");

line and their keyevent was broadcasted to the main window widget. This doesn't 
have a keyhandler, and then the default action for an arrow key in Gtk happens, 
namely "focus widget that is next in the direction that the arrow that is just 
pressed pointing", kinda like the tab for next button in windows. The fix was 
easy in the end, keys that are held down now properly stop the keypress event 
signal. (Patch attached)

------- You are receiving this mail because: -------
Whoops!  I have no idea!