[Gtk-sharp-list] Keyboard handling and DrawingArea

Aaron Oxford aaron at hardwarehookups.com.au
Sun Mar 18 04:20:35 EDT 2007

Hi again list,

I'm having trouble (again) with keyboard handling and getting a 
DrawingArea to AcceptFocus. Basically, it won't. I can actually get 
keypresses through to the DrawingArea no problem, but they seem to 
also be being intercepted by other controls, and no matter what I do 
or what flags I set, I can't get the DrawingArea to be a tab-stop or 
accept focus when clicked.

Links to Gtk's keyboard handling philosophy would be handy. I had 
hoped not to have to write a global keyboard hook just to handle the 
tab key on my pattern editor (the most important control in my app) 
which, despite having a cursor, won't accept focus. I thought that 
would disappear with WinForms.

Thanks for any info,

Aaron Oxford   -   aaron+hardwarehookups .com .au
Director, Innovative Computer Solutions (Aust) Pty. Ltd.
49 Maitland Rd, Mayfield, NSW 2304 Australia
Developer, SourceForge project VioLet Composer

More information about the Gtk-sharp-list mailing list