User forums > Help
Shift doesn't work in keyboard shortcuts
vid512:
Using Code::Blocks svn 8164 (from jenslody.de Debian repository) on Ubuntu (Fluxbox / Unity), amd64. Same problem happened with older codeblocks from ubuntu repository.
For some weird reason, the Shift key seems to be ignored in some (?) keyboard shortcuts. SHIFT+F2 beheaves like F2, CTRL+SHIFT+F9 like CTRL+F9, etc.
This only happens with keyboard shortcuts. I can type capital letters using SHIFT, I can cycle through tabs backwards with CTRL+SHIFT+Tab. SHIFT does work in some shortcuts. For example following work correctly:
CTRL+SHIFT+Z (Redo),
CTRL+SHIFT+C (comment selected)
CTRL+SHIFT+S (save all files)
CTRL+SHIFT+F4 (close all files)
CTRL+SHIFT+F (find in files)
But following shortcuts beheave as if SHIFT was not pressed:
SHIFT+F2 (toggle Manager window)
SHIFT+F3 (Find Previous)
CTRL+SHIFT+F9 (Compile current file)
SHIFT+F8 (Stop debugger)
Issuing corresponding command from menu does work.
I haven't noticed similar issue with Shift key in any other application, including wxwidgets based applications. This seems to be related to some custom shortcut handling in C::B.
I have tried running codeblocks with default settings (deleted ~/.codeblocks), but it didn't help.
If there's anything else I can try, please let me know.
oBFusCATed:
Not a C::B problem. It is a global gtk/xkeyboard-config problem. And it happens with xkeyboard-config 2.4+ if I remember correctly.
It is pretty annoying problem, but I have no time to dig it further.
Please report it to the Ubuntu maintainers, so they can report it upstream to xkeyboard-config maintainers.
vid512:
Is this a known problem? Have you looked into this in past? Do you have any additional information? Any other application where this problem manifests?
I strongly doubt Ubuntu maintainers would agree this is not a C::B problem without further info.
oBFusCATed:
I've compiled the one of the wx samples, defined a shortcut with a shift in it (shift+f3 I think) and it has not been triggered.
So the sample has the same problem. I've not tried to make a pure gtk application to see if the problem is there, but I think
it will because this problem is X/system wide.
I'm on gentoo and when I was able to downgrade to the last 2.3.x release of xkeyboard-config package it fixed the problem,
unfortunately I'm no longer able to downgrade, so I suffer a lot with this problem.
vid512:
Which sample specifically, and how did you modify it? I couldn't reproduce this problem. I tried to modify menu accelerator to Shift-F2 and Shift-F3 in "menu" sample, and checked events reported by "keyboard" sample in both wx-2.8 and wx-2.9.1, and they all worked correctly.
Navigation
[0] Message Index
[#] Next page
Go to full version