Re: non-alphanumeric control key accelerators broken?



Michael,

You are right, the only problem is that the format for specifying non-alpha
characters for accelerators is different than it was in the old
BonoboUIHandler, and I didn't realize that.

Thanks for researching this. I will update the FAQ.

John

on 10/16/00 2:00 PM, Michael Meeks at michael helixcode com wrote:

> 
> Hi John,
> 
> On Mon, 16 Oct 2000, John Sullivan wrote:
>> Nautilus uses Control-key accelerators with "[", "]", "-", and "=",
>> but these have all stopped appearing/working in the new Bonobo
>> UI. I'm not sure if they've been broken since we switched over, or
>> if they were broken by some subsequent change.
> 
> Well I'm afraid I'm not an expert on key bindings; however I
> traced the problem thus:
> 
> [michael inspiron evolution]$ cat > a.c
> #include <gtk/gtk.h>
> 
> int main (int argc, char **argv)
> {
> char *strs [] = { "]", "a", "Z", "=", "-", "?", "@" };
> int i;
> 
> for (i=0;i<7;i++) {
> printf ("'%s' -> '%s' %d\n", strs [i],
> gdk_keyval_name (strs [i] [0]),
> gdk_keyval_from_name (strs [i]));
> }
> }
> [michael inspiron evolution]$ sync
> [michael inspiron evolution]$ gcc `gnome-config --cflags gtk` \
> `gnome-config --libs gtk` ./a.c
> [michael inspiron evolution]$ ./a.out
> ']' -> 'bracketright' 0
> 'a' -> 'a' 97
> 'Z' -> 'Z' 90
> '=' -> 'equal' 0
> '-' -> 'minus' 0
> '?' -> 'question' 0
> '@' -> 'at' 0
> 
>> Michael, do you want me to try to track this down in Bonobo, or can
>> you handle it from here?
> 
> I hope this helps, if you could add a FAQ entry about this it
> would help others in future perhaps.
> 
> Regards,
> 
> Michael.





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