Accelerators and key maps



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm having trouble with a menu accelerator

My default keyboard is en_US and I have mapped a key using

gtk_widget_add_accelerator(GTK_WIDGET(menuitem_showcontrols),
"activate", accel_group, GDK_c, 0, GTK_ACCEL_VISIBLE);

But if I switch to the Dvorak keyboard layout, when I press the 'j' key
which is the same as 'c' on the US layout it calls the accelerator. I've
traced the keyboard and they key press call back is getting the J but
the menu is responding to it like it should for the C.

To the keys are mapped right, but the accelerator does not seem to be.
Is there something I should put in the code to setup the accelerators.

Thanks,

Kevin

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAklFah8ACgkQ6w2kMH0L1dEtcwCfTpGZBvtJ/FPiGyZZdzcf38O4
LCAAnApsMqnu8ilptVfmZ1eXXuiAVCgh
=jRPo
-----END PGP SIGNATURE-----



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