GNOME Bugzilla – Bug 412970
ctrl-a becomes ctrl-q under azerty keyboard?
Last modified: 2007-03-01 10:02:30 UTC
Ctrl+A is used in most graphical applications for "Select all" but trying it in Pan will quit !
That's strange. Ctrl+A isn't mapped to anything at all in Pan. GtkTreeView's internal mappings seem to pick it up as "Select all" if a GtkTreeView has focus, but otherwise Ctrl+A should have no effect at all. * What version of Pan are you using? * Is <Control>a mapped to anything in ~/.pan2/accels.txt?
I'm using 0.125 and <Control>a does not appear in ~/.pan2/accels.txt <Control>a and <Control>q both exit but I have no idea why...
I added (gtk_accel_path "<Actions>/Actions/show-header-pane" "<Control>a") to ~/.pan2/accels.txt, just to test, and it correctly shows/hides the pane. If I remove it, it quits again...
very strange, I can't reproduce this. Could you run Pan in gdb with a breakpoint at mainloop_quit() and get a backtrace when Pan exits on ctrl-a?
mainloop_quit was not resolved by gdb so I set it on gtk_main_quit :
+ Trace 114773
Does accel_key=113 mean it receives my 'a' as a 'q' ?
This may be related to my keyboard layout (azerty) but the strange part is that when pressing Ctrl+q, the code is the same... (gdb) bt
+ Trace 114781
So here is where I am : - I start GNOME - pan get the same key for Ctrl+a and Ctrl+q - xev see correct keys for Ctrl+a and Ctrl+q - I add the GNOME keyboard layout applet - I switch to us layout using the applet - pan only quits with Ctrl+q - I switch to fr layout using the applet - pan get the same key for Ctrl+a and Ctrl+q - I change the layout to what is in my xorg.conf using setxkbmap (setxkbmap -layout fr -model pc105) and then keys get correct in pan but I can no longer change layout using the applet - I try setxkbmap -layout fr,us and the I can switch again between both using the applet but pan gets again the same key for Ctrl+a and Ctrl+q
Re comment #6: 0x113 == 161 == 'q', so yes the 113 in > #12 0xb7aca3a6 in IA__gtk_accel_group_activate (accel_group=0x8540e80, > accel_quark=1253, acceleratable=0x853c000, accel_key=113, > accel_mods=GDK_CONTROL_MASK) > at gtkaccelgroup.c:736 > #13 0xb7aca4ae in IA__gtk_accel_groups_activate (object=0x853c000, > accel_key=113, accel_mods=GDK_CONTROL_MASK) at gtkaccelgroup.c:774 indicates that gtk+ thinks that ctrl-q has been pressed. What version of gtk do you have installed?
Given that Pan doesn't do anything with <control>a, and judging from the backtraces and comment #8, I suspect this is a bug in either gnome-keyboard-properties or in gtk+ itself. I'm bumping this over to the control-center keyboard people to get another pair of eyes to look at this. Feel free to bump it back if you feel this is a bug in Pan.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 162726 ***