I'm having a problem with the gtk build of scintilla that I am not really understanding. Our build works fine on ubuntu with gtk 2.10.11, but fails (same binaries) on suse 10.2 with gtk 2.10.6.

The failure is that gtk_im_context_filter_keypress (in KeyThis) always returns false, unless we hold the mouse button down while typing. I've looked at the gtk sources for both versions and have tried to follow the logic happening in this function, but it seems like it should always fail, so I know I am missing something.

This showed up another potential bug also. KeyDefault only calls NotifyKey (and the login in there is very loopy, why do any of that at all?) so if gtk_im_context_filter_keypress fails, and there is no event->string value, the keypress vanishes. On the osx side I copied the original logic from gtk for KeyDefault, and we do call AddChar if we can.

I'm hoping someone can help to explain what might be happening.
Regards,
Shane
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to