Re: [code] hotkeys with Cyrillic can`t work for me

From: Mitchell <m.att.foicica.com>
Date: Mon, 28 Nov 2016 22:38:20 -0500 (EST)

Hi Vsevolod,

On Mon, 28 Nov 2016, Всеволод Балашов wrote:

> Now i make workaround on first look work fine for me.
>
> static int s_keypress(GtkWidget* widget, GdkEventKey *event, void*__) {
> if (event->keyval > 127 &&
> (event->state & (GDK_CONTROL_MASK | GDK_META_MASK)))
> gdk_keymap_translate_keyboard_state(gdk_keymap_get_for_display(gdk_screen_get_display(gtk_widget_get_screen(widget))),
> event->hardware_keycode,
> event->state,
> 1, //event->group, // why 1? dont
> know!
>
> [snip]

Sadly, this falls out of the realm of my knowledge. It looks like
`event->group` is not what you're expecting, but hardcoding a value makes
things work. Perhaps Heck or someone more knowledgable on GTK and
different key layouts can chime in. Until then, it looks like you have a
workaround at least.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 28 Nov 2016 - 22:38:20 EST

This archive was generated by hypermail 2.2.0 : Tue 29 Nov 2016 - 06:52:50 EST